The query seems to work with the internal_id too (as the input’s id field’s value). That one is guaranteed to be unique, also between different phases/pipes.
Thanks for the quick response, I tried with the internal id,
mutation {
updatePhaseField(
input: {
id: "324867776"
label: "test"
}
) {
phase_field {
id
label
}
}
}
but it gave the following error:
{
"data": {
"updatePhaseField": null
},
"errors": [
{
"message": "Field not found with id: 324867776",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"updatePhaseField"
],
"code": 30003,
"type": "ResourceNotFoundError"
}
]
}
I tried this with a few internal ids taken from Pipefy url as well as other GraphQL querys.
Were you able to get a different result @genietim? I am running this from https://app.pipefy.com/graphiql
@jon71, I am sorry, you are right, I cannot reproduce what I thought I did before. Well then. Using extra and iid fields (e.g., I just created and tried with ”test_for_jon71”), I get a “permission denied” error.
So I guess there is indeed something wrong and Pipefy employees have to chime in.
Did you try it with an iid field in a test pipe? Are you able to change the field that way?
{
"data": {
"updatePhaseField": null
},
"errors": e
{
"message": "Permission denied",
"locations": a
{
"line": 2,
"column": 3
}
],
"path":
"updatePhaseField"
],
"code": 30001,
"type": "PermissionDeniedError"
}
]
}
This has been resolved. You have to use id AND uuid fields as using only uuid throws an error.
internal id (e.g. 324867666) does not work.
mutation {
updatePhaseField(
input: {
id: "test_field"
uuid: "d8b8908d-77e5-47c2-bc8c-89e985822812"
label: "Test Field"
}
) {
phase_field {
id
uuid
label
phase{
name
}
}
}
}
I tested this with fields that had the same id across two pipes and it worked.
Awesome, thanks @jon71 . Interesting though that uuid is not documented as an input parameter...