GeoPard Tutorials
Ask or search…
⌃K

63. Mutation: Save Organization

Mutation to add or edit the "Organization". The "User" who sent the saveOrganization request will be the owner of the "Organization".
1
mutation saveOrganizationSample {
2
saveOrganization(
3
input: {
4
name: "Organization name"
5
surname: "Owner surname"
6
givenName: "Owner given name"
8
phone: "+0"
9
}
10
) {
11
uuid
12
name
13
surname
14
givenName
15
email
16
phone
17
createdDate
18
updatedDate
19
}
20
}
To edit the existing "Organization", add the uuid attribute to the request.
1
mutation saveOrganizationSample {
2
saveOrganization(
3
input: {
4
uuid: "<organization_uuid>"
5
name: "New organization name"
6
surname: "Owner surname"
7
givenName: "Owner given name"
9
phone: "+0"
10
}
11
) {
12
uuid
13
name
14
surname
15
givenName
16
email
17
phone
18
createdDate
19
updatedDate
20
}
21
}
​