put https://api.exponea.com/data/v2/projects//catalogs/
/data/v2/projects/{projectToken}/catalogs/{catalogId}
Updates the name of a catalog.
Rename a single catalog in your project using the API or create a new property within the catalog. To create a new property in the API payload, specify all existing properties and add the new one.
Definition
Authorization
In this API call you must use the following authorization access and permissions:
Available access type | Permissions needed |
---|---|
Private access | Catalogs > Update catalog |
Read more about:
Path parameters
Parameter | Type | Description | Required |
---|---|---|---|
projectToken | string | The ID of your project. | Required |
catalogId | string | The ID of the desired existing catalog. | Required |
Body Parameters
Parameter | Type | Description | Required |
---|---|---|---|
name | string | New name for the catalog. | Required |
fields | array of objects | Existing list of columns and definitions of the catalog. These fields have to match the existing fields in the catalog. (see the Create a catalog method for details) | Required |
Header
Parameter | Type | Description | Required |
---|---|---|---|
authorization | string | Used for authentication. Read more in the Authentication section. | Required |
content-type | string | application/json | Required |
Limitations
You must use the same definition of fields as when you created the catalog. Fields cannot be updated by this method. Only the name can be updated.