API DocumentationSpecifications

Upsert specification metadata by key

PUT
/api/manufacturer/v1/part-specification/{partSpecificationId}/metadata/key/{metadataKey}
        Sets the value for a metadata key on a specification, creating the entry if it does not already exist.         Intended for external systems that track their own key but do not know the corresponding internal metadata ID.

Authorization

Phasio API Bearer Token
headerAuthorizationBearer <token>

Path Parameters

partSpecificationId*string

ID of the specification

Formatuuid
metadataKey*string

Metadata key to set

Request Body

application/json
  1. body
value*string

Response Body

Metadata upserted successfully

application/json
  1. response
id*string
Formatuuid
metadataKey*string
value*string
createdBy?
updatedBy?
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
curl -X PUT 'https://m-api.eu.phas.io/api/manufacturer/v1/part-specification/497f6eca-6276-4993-bfeb-53cbbbba6f08/metadata/key/erp:article_number' \  -H 'Content-Type: application/json' \  -d '{  "value": "string"}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "metadataKey": "string",  "value": "string",  "createdBy": {    "email": "string",    "firstName": "string",    "lastName": "string"  },  "updatedBy": {    "email": "string",    "firstName": "string",    "lastName": "string"  },  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}