Skip to content

Commit

Permalink
Fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Aug 29, 2024
1 parent d6814df commit 4114837
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions packages/cma-client/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion packages/cma-client/src/generated/resources/ItemType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema> {
return this.client.request<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>(
{
method: 'POST',
url: '/item-types/reorder-fields-and-fieldsets',
url: `/item-types/${itemTypeId}/reorder-fields-and-fieldsets`,
body,
},
);
Expand Down

0 comments on commit 4114837

Please sign in to comment.