Skip to content

Latest commit

 

History

History
149 lines (84 loc) · 7 KB

File metadata and controls

149 lines (84 loc) · 7 KB

AttributeTemplateApi

Method HTTP request Description
getByPath GET /attributetemplates Retrieve an attribute template by path.
get GET /attributetemplates/{webId} Retrieve an attribute template.
update PATCH /attributetemplates/{webId} Update an existing attribute template by replacing items in its definition.
delete DELETE /attributetemplates/{webId} Delete an attribute template.
getAttributeTemplates GET /attributetemplates/{webId}/attributetemplates Retrieve an attribute template's child attribute templates.
createAttributeTemplate POST /attributetemplates/{webId}/attributetemplates Create an attribute template as a child of another attribute template.
getCategories GET /attributetemplates/{webId}/categories Get an attribute template's categories.

getByPath

getByPath(String path, String selectedFields, String webIdType)

Retrieve an attribute template by path.

Parameters

Name Type Description Notes
path String The path to the attribute template.. [required]
selectedFields String List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]
webIdType String Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType".. [optional]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

get

get(String webId, String selectedFields, String webIdType)

Retrieve an attribute template.

Parameters

Name Type Description Notes
webId String The ID of the attribute template.. [required]
selectedFields String List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]
webIdType String Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType".. [optional]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

update

update(String webId, PIAttributeTemplate template)

Update an existing attribute template by replacing items in its definition.

Parameters

Name Type Description Notes
webId String The ID of the attribute template.. [required]
template PIAttributeTemplate A partial attribute template containing the desired changes.. [required]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

delete

delete(String webId)

Delete an attribute template.

Parameters

Name Type Description Notes
webId String The ID of the attribute template.. [required]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

getAttributeTemplates

getAttributeTemplates(String webId, String selectedFields, String webIdType)

Retrieve an attribute template's child attribute templates.

Parameters

Name Type Description Notes
webId String The ID of the attribute template.. [required]
selectedFields String List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]
webIdType String Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType".. [optional]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

createAttributeTemplate

createAttributeTemplate(String webId, PIAttributeTemplate template, String webIdType)

Create an attribute template as a child of another attribute template.

Parameters

Name Type Description Notes
webId String The ID of the parent attribute template on which to create the attribute template.. [required]
template PIAttributeTemplate The attribute template definition.. [required]
webIdType String Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType".. [optional]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]

getCategories

getCategories(String webId, String selectedFields, String webIdType)

Get an attribute template's categories.

Parameters

Name Type Description Notes
webId String The ID of the attribute template.. [required]
selectedFields String List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned.. [optional]
webIdType String Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType".. [optional]

Return type

[Back to top] [Back to API list] [Back to Model list] [Back to DOCUMENTATION]