academyFIVE API icon

academyFIVE API

Interact with academyFIVE API

Actions549

Room-categories → Update a room category

AI-generated

Summary

Update an existing room category by specifying its id, type, attributes, and relationships to colors within the academyFIVE API.

Inputs

  • data (required) — Object containing the updated room category details including 'type' (string), 'id' (string), 'attributes' (optional: labelDe and labelEn strings), and 'relationships' (optional: colors with type and id for each color).

Output shape

a list of JSON objects representing the updated room category data

The operation sends a PATCH request with the specified data and returns the JSON response in an array. Errors are returned in json.error if continue on fail is enabled.

Examples

Example 1: Update the labelEn attribute of a room category with a specific id and optionally update its related colors by providing their type and id.

Set resource to 'Room-categories', operation to 'Update a room category', and provide the required data with type, id, attributes, and relationships as needed.

Links

Discussion