Skip to content

Function: createObjectAttribute() ​

ts
function createObjectAttribute(
   client, 
   parameters, 
   options?
): Promise<ObjectAttribute>;

Defined in: src/assetsServer/api/objectAttributes.ts:6

Create a new attribute for a given object.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ includeTypeAttribute?: string; objectAttributeValues: object[]; objectId?: number; objectTypeAttributeId?: number; operationType?: number; }-
parameters.includeTypeAttribute?stringShould the response include the object type attribute definition
parameters.objectAttributeValues?object[]-
parameters.objectId?number-
parameters.objectTypeAttributeId?number-
parameters.operationType?number-
options?RequestOptions-

Returns ​

Promise<ObjectAttribute>