Create a Label for an Inventory
post
/api/v2/inventories/{id}/labels/
Make a POST request to this resource with the following label fields to create a new label associated with this inventory.
name: Name of this label. (string, required)organization: Organization this label belongs to. (id, required)
Add Labels for an Inventory:
Make a POST request to this resource with only an id field to associate an
existing label with this inventory.
Remove Labels from this Inventory:
Make a POST request to this resource with id and disassociate fields to
remove the label from this inventory
.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : Label
Type:
Show Source
object-
created:
string
Title:
CreatedRead Only:true -
id:
integer
Title:
IDRead Only:true -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
organization(required):
integer
Title:
OrganizationOrganization this label belongs to. - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true
Response
Supported Media Types
- application/json
201 Response
Root Schema : Label
Type:
Show Source
object-
created:
string
Title:
CreatedRead Only:true -
id:
integer
Title:
IDRead Only:true -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 -
organization(required):
integer
Title:
OrganizationOrganization this label belongs to. - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true