diff --git a/packages/cma-client/resources.json b/packages/cma-client/resources.json index 606436a2..3ae68982 100644 --- a/packages/cma-client/resources.json +++ b/packages/cma-client/resources.json @@ -1040,10 +1040,21 @@ "returnsCollection": false, "docUrl": "https://www.datocms.com/docs/content-management-api/resources/item-type/reorder_fields_and_fieldsets", "rel": "reorder_fields_and_fieldsets", - "urlTemplate": "/item-types/reorder-fields-and-fieldsets", + "urlTemplate": "/item-types/${itemTypeId}/reorder-fields-and-fieldsets", "method": "POST", "comment": "Reorders a set of fields and fieldsets within the model", - "urlPlaceholders": [], + "urlPlaceholders": [ + { + "variableName": "itemTypeId", + "isEntityId": true, + "relType": "ItemTypeData" + } + ], + "entityIdPlaceholder": { + "variableName": "itemTypeId", + "isEntityId": true, + "relType": "ItemTypeData" + }, "requestBodyType": "ItemTypeReorderFieldsAndFieldsetsSchema", "optionalRequestBody": false, "requestStructure": { diff --git a/packages/cma-client/src/generated/resources/ItemType.ts b/packages/cma-client/src/generated/resources/ItemType.ts index de43cca1..7e26ea31 100644 --- a/packages/cma-client/src/generated/resources/ItemType.ts +++ b/packages/cma-client/src/generated/resources/ItemType.ts @@ -285,12 +285,13 @@ export default class ItemType extends BaseResource { * @deprecated This API call is to be considered private and might change without notice */ rawReorderFieldsAndFieldsets( + itemTypeId: string, body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema, ): Promise { return this.client.request( { method: 'POST', - url: '/item-types/reorder-fields-and-fieldsets', + url: `/item-types/${itemTypeId}/reorder-fields-and-fieldsets`, body, }, );