younifyd
Menu

Create Policy

Create a Policy

POST/policies‎

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Create Policy action (under Policies).
  3. Fill in the fields below, then reference the result from later steps as {{createPolicy.response.data}}.

Request

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Response

Returns 200 with an object. Read it in later steps with {{createPolicy.response.data.<field>}}.

dataobject
typeany
descriptionany
json
{
  "data": {
    "type": null,
    "description": null
  }
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.