Orishare
API reference
GET
/context
AuthorizationBearer <token>

Audited staff access with a staff grant and audit reason.

In: header

Header Parameters

X-Orishare-Environment?string

Required for selected-environment authorization branches; API keys use their bound environment.

Length1 <= length
X-Orishare-Audit-Reason?string

Required for staff authorization. Records the reason for staff access.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/context"
{  "business_type": "game",  "terminology": {    "property1": {      "singular": "string",      "plural": "string",      "locales": {        "property1": {          "singular": "string",          "plural": "string"        },        "property2": {          "singular": "string",          "plural": "string"        }      }    },    "property2": {      "singular": "string",      "plural": "string",      "locales": {        "property1": {          "singular": "string",          "plural": "string"        },        "property2": {          "singular": "string",          "plural": "string"        }      }    }  },  "mechanics": {    "property1": "enabled",    "property2": "enabled"  },  "default_locale": "string",  "presentation_revision": 0,  "environment_id": "string",  "business_description": "string",  "vocabulary": {    "property1": null,    "property2": null  },  "glossary": {    "property1": null,    "property2": null  },  "version": 0,  "updated_at": "2019-08-24T14:15:22Z"}
PATCH
/context
AuthorizationBearer <token>

Audited staff access with a staff grant and audit reason.

In: header

Header Parameters

X-Orishare-Environment?string

Required for selected-environment authorization branches; API keys use their bound environment.

Length1 <= length
X-Orishare-Audit-Reason?string

Required for staff authorization. Records the reason for staff access.

Length1 <= length
If-Match?string

Optional legacy revision. Missing or malformed values follow the existing route parser.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/context" \  -H "Content-Type: application/json" \  -d '{    "default_locale": "fr"  }'
{  "business_type": "game",  "terminology": {    "property1": {      "singular": "string",      "plural": "string",      "locales": {        "property1": {          "singular": "string",          "plural": "string"        },        "property2": {          "singular": "string",          "plural": "string"        }      }    },    "property2": {      "singular": "string",      "plural": "string",      "locales": {        "property1": {          "singular": "string",          "plural": "string"        },        "property2": {          "singular": "string",          "plural": "string"        }      }    }  },  "mechanics": {    "property1": "enabled",    "property2": "enabled"  },  "default_locale": "string",  "presentation_revision": 0,  "environment_id": "string",  "business_description": "string",  "vocabulary": {    "property1": null,    "property2": null  },  "glossary": {    "property1": null,    "property2": null  },  "version": 0,  "updated_at": "2019-08-24T14:15:22Z"}
GET
/context/presets

Authorization

AuthorizationBearer <token>

Secret API key bound to an environment.

In: header

Header Parameters

X-Orishare-Audit-Reason?string

Required for staff authorization. Records the reason for staff access.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/context/presets"
{  "data": [    {      "business_type": "game",      "terminology": {        "property1": {          "singular": "string",          "plural": "string"        },        "property2": {          "singular": "string",          "plural": "string"        }      },      "mechanics": {        "property1": "enabled",        "property2": "enabled"      }    }  ]}