Manage Intents
Intents API reference guide
The intent API allows users to create and manage intents.
Permissions
GOVERNANCE Immuta permission
Endpoints and methods
POST /intent
Create a new intent. You can also add a description, assign or remove groups, and assign or remove attributes after creating the intent.
Body parameters
name string
The name of the intent.
Required
-
description string
The description of the intent that will be displayed for users.
Optional
-
authorizations object
The attribute key-value pairs assigned to the intent.
Required
-
groups.name string
The group names assigned to the intent.
Required
-
groups.iamid string
The unique identifier of the identity provider that contains the groups. You can find this ID in the identity provider's configuration section on the app settings page or through the Immuta API. If you created the group in Immuta, this value is bim.
Required
-
Response
Returns the intent object.
DELETE /intent/{id}
Delete an intent.
Path parameter
id integer
The unique identifier of the intent. You can retrieve a list of intent IDs using the /intent/search endpoint.
Response
Returns a 200 code when the intent is successfully deleted.
GET /intent/{id}
Retrieve a specific intent.
Path parameter
id integer
The unique identifier of the intent. You can retrieve a list of intent IDs using the /intent/search endpoint.
Response
Returns the intent object.
PUT /intent/{id}
Update the intent name or description.
Path parameter
id integer
The unique identifier of the intent. You can retrieve a list of intent IDs using the /intent/search endpoint.
Body parameters
name string
The name of the intent.
description string
The description of the intent.
Response
Returns the intent object.
PUT, POST /intent/{id}/attributes
Update the attributes assigned to the intent. The attributes included in the payload will replace existing attributes assigned to the intent.
Path parameter
id integer
The unique identifier of the intent. You can retrieve a list of intent IDs using the /intent/search endpoint.
Body parameter
authorizations object
Includes attribute keys that each pair with an array of attribute values.
Response
Returns the intent object.
PATCH /intent/{id}/attributes/{action}
Add or remove specific attributes from an intent.
Path parameters
id integer
The unique identifier of the intent. You can retrieve a list of intent IDs using the /intent/search endpoint.
action string
Specifies whether to add or remove the provided attribute.
Body parameter
authorizations object
Includes attribute keys that each pair with an array of attribute values.
Response
Returns the intent object.
DELETE /intent/{id}/groupAssignment
Remove groups from the intent.
Path parameter
id integer
The unique identifier of the intent. You can retrieve a list of intent IDs using the /intent/search endpoint.
Body parameters
groups.name string
The group names assigned to the intent.
groups.iamid string
The unique identifier of the identity provider that contains the groups. You can find this ID in the identity provider's configuration section on the app settings page or through the Immuta API. If you created the group in Immuta, this value is bim.
Response
Returns group objects that were removed from the intent.
Response schema
unassignedGroups array
An array of group objects that were removed from the intent.
name string
The name of the group removed from the intent.
iamid string
The unique identifier of the identity provider that contains the group that was removed from the intent.
id integer
The unique identifier of the group in Immuta.
errors array
An array of errors resulting from attempted group assignments. For example, Group with name Engineers and iamid bim does not exist.
POST /intent/{id}/groupAssignment
Assign groups to an intent.
Path parameter
id integer
The unique identifier of the intent. You can retrieve a list of intent IDs using the /intent/search endpoint.
Body parameters
groups.name string
The group names to assign to the intent.
groups.iamid string
The unique identifier of the identity provider that contains the groups. You can find this ID in the identity provider's configuration section on the app settings page or through the Immuta API. If you created the group in Immuta, this value is bim.
Response
Returns a list of groups assigned to the intent.
Response schema
groups array
An array of group objects that were assigned to the intent.
name string
The name of the group assigned to the intent.
iamid string
The unique identifier of the identity provider that contains the group that was assigned to the intent.
id integer
The unique identifier of the group in Immuta.
errors array
An array of errors resulting from attempted group assignments. For example, Group with name Engineers and iamid bim does not exist.
POST /intent/search
Search for intents.
Body parameters
attributes object
Returns intents that contain this attribute.
Optional
-
groups string
Returns intents that contain this group.
Optional
-
limit integer
The number of intents to return.
Optional
Minimum value is 1. Maximum value is 100.
offset integer
The number of items from the beginning of the response to exclude. You can combine the offset and limit parameters to return a specific set of intents. For example, to return the second and third intent in the response, you would set offset=1 and limit=2.
Optional
Minimum value is 0. Maximum value is the total number of intents minus limit.
searchText string
The text to search for in intent names. This will return intents with a name that contains this search text.
Optional
-
sortField string
Specifies the field to sort the results by.
Optional
createdAtidnameupdatedAt
sortOrder string
Specifies how to sort the results of the request.
Optional
ascdesc
Response
Returns a list of intent objects that match the search criteria.
Response schema
intents.id integer
The unique identifier of the intent.
intents.name string
The name of the intent.
intents.attributeCount integer
The total number of attribute key-value pairs assigned to the intent.
intents.groupCount integer
The total number of groups assigned to the intent.
intents.createdAt timestamp
The date and time the intent was created.
intents.updatedAt timestamp
The date and time the intent was updated.
total integer
The total number of intents that match the search criteria.
Intent object attributes
id integer
The unique identifier of the intent.
name string
The name of the intent.
description string
The description of the intent that will be displayed for users.
authorizations object
The attribute key-value pairs assigned to the intent.
groups.name string
The group names assigned to the intent.
groups.iamid string
The unique identifier of the identity provider that contains the groups.
createdAt timestamp
The date and time the intent was created.
updatedAt timestamp
The date and time the intent was updated.
deleted boolean
Indicates whether the intent has been deleted.
errors array
An array of errors resulting from attempted group assignments. For example, Group with name Engineers and iamid bim does not exist.
Last updated
Was this helpful?

