From 715b10fcd9545f02384fa9957f083c08e71c2aff Mon Sep 17 00:00:00 2001 From: Zack Swafford Date: Tue, 15 Nov 2022 20:59:58 -0800 Subject: [PATCH] Update documentation mistake This example in the curl documentation doesn't match the gh api example and is incorrect. Likely a copy/paste error from the previous example. --- .../automating-your-project/using-the-api-to-manage-projects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md b/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md index e2b1241fa39d..c6f7923d1a10 100644 --- a/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md +++ b/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md @@ -660,7 +660,7 @@ The following example will update the value of an iteration field for an item. curl --request POST \ --url https://api.github.com/graphql \ --header 'Authorization: Bearer TOKEN' \ - --data '{"query":"mutation {updateProjectV2ItemFieldValue( input: { projectId: \"PROJECT_ID\" itemId: \"ITEM_ID\" fieldId: \"FIELD_ID\" value: { singleSelectOptionId: \"OPTION_ID\" }}) { projectV2Item { id }}}"}' + --data '{"query":"mutation {updateProjectV2ItemFieldValue( input: { projectId: \"PROJECT_ID\" itemId: \"ITEM_ID\" fieldId: \"FIELD_ID\" value: { iterationId: \"ITERATION_ID\" }}) { projectV2Item { id }}}"}' ``` {% endcurl %}