Skip to main content

Check out Port for yourselfย 

Create an entity

POST 

/v1/blueprints/:blueprint_identifier/entities

This route allows you to create an entity in your software catalog based on an existing blueprint in your data model. It can also be used to overwrite or update an existing entity.

To learn more about entities, check out the documentation.

Requestโ€‹

Path Parameters

    blueprint_identifier stringrequired

    Possible values: non-empty

    The identifier of the blueprint you want to create an entity from.

Query Parameters

    upsert boolean

    If true, this call will override the entire entity if it already exists.

    Default value: false
    merge boolean

    If true and upsert is also true, this call will update the entity if it already exists.

    Default value: false
    validation_only boolean

    If true, this call will only validate the entity and return the validation errors.

    Default value: false
    create_missing_related_entities boolean

    If true, this call will also create missing related entities.
    This is useful when you want to create an entity and its related entities in one call, or if you want to create an entity whose related entity does not exist yet.

    Default value: false
    run_id string

    You can provide a run_id to associate the created entity with a specific action run.

Body

    identifier

    object

    oneOf

    The identifier of the new entity.

    string

    Possible values: Value must match regular expression ^[A-Za-z0-9@_.:\\/=-]+$

    titlestring

    The title of the new entity.

    iconstring

    The icon of the new entity.

    teamstring, string[]

    The Port team/s to which the new entity will belong.

    propertiesobject

    An object containing the properties of the new entity, in "key":"value" pairs where the key is the property's identifier, and the value is its value.

    relationsobject

    An object containing the relations of the new entity, in "key":"value" pairs where the key is the relation's identifier, and the value is the related entity's identifier.
    You can also use a search query to define relations based on a property of the related entity.

Responsesโ€‹

Successfully updated an entity