Skip to main content
POST
/
api
/
v1
/
org
/
variables
Create Organisation Variable Api Endpoint
import requests

url = "https://platform.ankra.app/api/v1/org/variables"

payload = {
    "name": "<string>",
    "value": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "variable": {
    "id": "<string>",
    "organisation_id": "<string>",
    "name": "<string>",
    "value": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "description": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ankra.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
name
string
required
value
string
required
description
string | null

Response

Successful Response

variable
OrganisationVariable · object
required