Transfering a document
How to transfer a documento to an organization
Para transferir um documento, você pode utilizar a seguinte mutation.
mutation {
transferDocument(
id: "DOCUMENT_ID",
organization_id: "ORGANIZATION_ID",
group_id: "GROUP_ID"
)
}Parameters
id: AString(UUID!) representing the unique identifier of the document.organization_id: AnInt!representing the ID of the organization that will receive the document.group_id: AnInt!representing the ID of the group that will receive the document.
You can also include the following optional parameters:
current_group_id: AnIntrepresenting the current group ID of the document, if it belongs to one.context: AContextEnum(USER,GROUP, orORGANIZATION) that defines the context in which the document is located.
Resposta esperada:
{
"data": {
"transferDocument": true
}
}Last updated
Was this helpful?