curl --request POST \
--url https://api-dev.narrative.io/installations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_id": 67,
"tier_id": "basic"
}
'{
"id": 12345,
"app_id": 67,
"company_id": 345,
"tier_id": "basic",
"permissions": [
{
"access": "read",
"resource": "datasets"
},
{
"access": "write",
"resource": "destinations"
}
],
"installation_time": "2024-01-15T10:30:00"
}Creates a new installation for an app.
The installation associates an app with the authenticated company using a specific tier from the app’s manifest. The tier determines which permissions are granted to the installation.
curl --request POST \
--url https://api-dev.narrative.io/installations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_id": 67,
"tier_id": "basic"
}
'{
"id": 12345,
"app_id": 67,
"company_id": 345,
"tier_id": "basic",
"permissions": [
{
"access": "read",
"resource": "datasets"
},
{
"access": "write",
"resource": "destinations"
}
],
"installation_time": "2024-01-15T10:30:00"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successfully created the installation.
An installation represents an app that has been installed for a company.
Unique identifier for the installation.
12345
The ID of the installed app.
67
The ID of the company that installed the app.
345
The tier selected during installation.
"basic"
The permissions granted to this installation.
Show child attributes
The timestamp when the installation occurred.
"2024-01-15T10:30:00"
Was this page helpful?