Issue a right
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
basisId: 'bas_8f2c1a9b4e7d0c63',
scope: 'DOOH retail estate, Greater London',
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveUntil: '2023-11-07T05:31:56Z'
})
};
fetch('https://sandbox.api.enfinitos.com/v1/rights/issue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/rights/issue"
payload = {
"basisId": "bas_8f2c1a9b4e7d0c63",
"scope": "DOOH retail estate, Greater London",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/rights/issue"
payload := strings.NewReader("{\n \"basisId\": \"bas_8f2c1a9b4e7d0c63\",\n \"scope\": \"DOOH retail estate, Greater London\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveUntil\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/rights/issue")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basisId\": \"bas_8f2c1a9b4e7d0c63\",\n \"scope\": \"DOOH retail estate, Greater London\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveUntil\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/rights/issue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"basisId\": \"bas_8f2c1a9b4e7d0c63\",\n \"scope\": \"DOOH retail estate, Greater London\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveUntil\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/rights/issue \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"basisId": "bas_8f2c1a9b4e7d0c63",
"scope": "DOOH retail estate, Greater London",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z"
}
'{
"ok": true,
"data": {
"right": {
"id": "<string>",
"orgId": "<string>",
"basisId": "<string>",
"parentRightId": "<string>",
"scope": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z",
"contentHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
},
"contractVersion": "<string>"
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Rights
Issue a right
Issue a new root right against an existing basis. The basis must exist in the caller’s tenant. Appends a RIGHT_ISSUED event. Requires scope rights:write.
POST
/
v1
/
rights
/
issue
Issue a right
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
basisId: 'bas_8f2c1a9b4e7d0c63',
scope: 'DOOH retail estate, Greater London',
effectiveFrom: '2023-11-07T05:31:56Z',
effectiveUntil: '2023-11-07T05:31:56Z'
})
};
fetch('https://sandbox.api.enfinitos.com/v1/rights/issue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/rights/issue"
payload = {
"basisId": "bas_8f2c1a9b4e7d0c63",
"scope": "DOOH retail estate, Greater London",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/rights/issue"
payload := strings.NewReader("{\n \"basisId\": \"bas_8f2c1a9b4e7d0c63\",\n \"scope\": \"DOOH retail estate, Greater London\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveUntil\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/rights/issue")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"basisId\": \"bas_8f2c1a9b4e7d0c63\",\n \"scope\": \"DOOH retail estate, Greater London\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveUntil\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/rights/issue")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"basisId\": \"bas_8f2c1a9b4e7d0c63\",\n \"scope\": \"DOOH retail estate, Greater London\",\n \"effectiveFrom\": \"2023-11-07T05:31:56Z\",\n \"effectiveUntil\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/rights/issue \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"basisId": "bas_8f2c1a9b4e7d0c63",
"scope": "DOOH retail estate, Greater London",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z"
}
'{
"ok": true,
"data": {
"right": {
"id": "<string>",
"orgId": "<string>",
"basisId": "<string>",
"parentRightId": "<string>",
"scope": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z",
"contentHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
},
"contractVersion": "<string>"
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": true,
"message": "<string>",
"contractVersion": "<string>",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Authorizations
API key sent as Authorization: Bearer <api-key>.
Body
application/json
Id of an existing basis (prefixed bas_).
Example:
"bas_8f2c1a9b4e7d0c63"
Delivery substrate. The platform runtime recognises every value; which ones ship a dedicated client SDK varies (see the substrate readiness matrix). ANY matches all substrates.
Available options:
DOOH, CTV, MOBILE, STREAMING, AUDIO, MESSAGING, GAMING, GLASSES, AR_CONTACTS, HUD, VOLUMETRIC, HOLOGRAM, WEARABLES, AMBIENT, NEURAL, AUTOMOTIVE, SMART_HOME, ROBOTICS, DRONE, SATELLITE, AVIATION, MARITIME, SOCIAL_FEED, ANY Free-form scope label for the right.
Minimum string length:
1Example:
"DOOH retail estate, Greater London"
Optional; defaults to null. Must not predate effectiveFrom.
⌘I