Skip to content

Commit e7f5976

Browse files
authored
Merge pull request github#22044 from zswaff/patch-1
Update documentation mistake with curl API for mutating iteration fields
2 parents 40f8e9b + 323c29e commit e7f5976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ The following example will update the value of an iteration field for an item.
660660
curl --request POST \
661661
--url https://api.github.com/graphql \
662662
--header 'Authorization: Bearer TOKEN' \
663-
--data '{"query":"mutation {updateProjectV2ItemFieldValue( input: { projectId: \"PROJECT_ID\" itemId: \"ITEM_ID\" fieldId: \"FIELD_ID\" value: { singleSelectOptionId: \"OPTION_ID\" }}) { projectV2Item { id }}}"}'
663+
--data '{"query":"mutation {updateProjectV2ItemFieldValue( input: { projectId: \"PROJECT_ID\" itemId: \"ITEM_ID\" fieldId: \"FIELD_ID\" value: { iterationId: \"ITERATION_ID\" }}) { projectV2Item { id }}}"}'
664664
```
665665
{% endcurl %}
666666

0 commit comments

Comments
 (0)