{"openapi":"3.0.0","info":{"title":"API API Reference","version":"1.0.82","description":"API API specification and documentation.","termsOfService":"","license":null,"contact":{"name":"Strucurell","email":"hello@structurell.com","url":"https:\/\/structurell.com"},"x-logo":{"url":"https:\/\/structurell.com\/images\/structurell_logo_dark.webp","altText":"API API Reference","backgroundColor":"#ffffff"}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":[]},"servers":[{"url":"http:\/\/api.structurell.internal\/api","description":"Live server."}],"paths":{"\/api\/user-attribute\/set":{"post":{"tags":["User-attribute Set"],"summary":"Save user attribute settings","operationId":"post-api-user-attribute-set","description":"Store preserved user settings such as table preferences for the authenticated user.","requestBody":{"description":"Store preserved user settings such as table preferences for the authenticated user.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["attributeValues"],"properties":{"attributeValues":{"type":"array","example":"[{\"attributes\":[{\"name\":\"visible_columns\",\"value\":\"id,name,status\"}]}]","description":"Attribute groups to save for the current user."}},"example":{"attributeValues":"[{\"attributes\":[{\"name\":\"visible_columns\",\"value\":\"id,name,status\"}]}]"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user-attribute\/set\" \n    -d \"attributeValues\"=\"[{\"attributes\":[{\"name\":\"visible_columns\",\"value\":\"id,name,status\"}]}]\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user-attribute\/set\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"attributeValues\":             \"[{&quot;attributes&quot;:[{&quot;name&quot;:&quot;visible_columns&quot;,&quot;value&quot;:&quot;id,name,status&quot;}]}]\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"attributeValues\" =>             \"json_decode([{\"attributes\":[{\"name\":\"visible_columns\",\"value\":\"id,name,status\"}]}], true)\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user-attribute\/set\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service-routes\/list":{"get":{"tags":["Service Registry\n\nRequires signed internal request context."],"summary":"List service routes and workflow capabilities","operationId":"get-api-api-service-routes-list","description":"Return the service route catalogue plus discovered workflow entities, emitters, actions, and managed default workflows for internal registry sync.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/service-routes\/list\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service-routes\/list\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service-routes\/list\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/internal\/service\/add-update":{"post":{"tags":["API"],"summary":"Update add update","operationId":"post-api-api-internal-service-add-update","description":"Update add update","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/internal\/service\/add-update\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/internal\/service\/add-update\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/internal\/service\/add-update\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/initiate-for-subscription":{"post":{"tags":["API"],"summary":"Initiate service for subscription","operationId":"post-api-api-service-initiate-for-subscription","description":"Queue service setup for a subscription after the service is linked in the gateway.","requestBody":{"description":"Queue service setup for a subscription after the service is linked in the gateway.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier to set up the service for."},"initiated_by_user_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"optional The user identifier that initiated the setup."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","initiated_by_user_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/initiate-for-subscription\" \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"initiated_by_user_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/initiate-for-subscription\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"initiated_by_user_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"initiated_by_user_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/initiate-for-subscription\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/delete-for-subscription":{"delete":{"tags":["API"],"summary":"Delete service for subscription","operationId":"delete-api-api-service-delete-for-subscription","description":"Queue service removal for a subscription after the service is unlinked in the gateway.","requestBody":{"description":"Queue service removal for a subscription after the service is unlinked in the gateway.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier to remove the service from."},"status":{"type":"string","example":"Deleted","description":"optional The subscription service status to store after deletion."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","status":"Deleted"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/api\/service\/delete-for-subscription\" \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"status\"=\"Deleted\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/delete-for-subscription\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"status\":             \"Deleted\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"status\" =>             \"Deleted\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/delete-for-subscription\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/internal\/service-urls\/sync":{"post":{"tags":["API"],"summary":"Update sync","operationId":"post-api-api-internal-service-urls-sync","description":"Update sync","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/internal\/service-urls\/sync\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/internal\/service-urls\/sync\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/internal\/service-urls\/sync\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/internal\/context-public-key":{"get":{"tags":["API"],"summary":"Get context public key","operationId":"get-api-api-internal-context-public-key","description":"Get context public key","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/internal\/context-public-key\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/internal\/context-public-key\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/internal\/context-public-key\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/subscriptions-and-users\/all":{"get":{"tags":["API"],"summary":"Get all","operationId":"get-api-api-subscriptions-and-users-all","description":"Get all","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/subscriptions-and-users\/all\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/subscriptions-and-users\/all\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/subscriptions-and-users\/all\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/change-subscription":{"post":{"security":[{"BearerAuth":[]}],"tags":["API"],"summary":"Change the subscription you are using.","operationId":"post-api-api-change-subscription","description":"Switch the authenticated user's current subscription context.","requestBody":{"description":"Switch the authenticated user's current subscription context.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier to switch to."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/change-subscription\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/change-subscription\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/change-subscription\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/check-status":{"get":{"security":[{"BearerAuth":[]}],"tags":["API"],"summary":"Check the status of everything.","operationId":"get-api-api-check-status","description":"Check the status of everything.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/check-status\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/check-status\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/check-status\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/subscription":{"post":{"tags":["API"],"summary":"Create subscription","operationId":"post-api-api-subscription","description":"Create a subscription from an internal service request.","requestBody":{"description":"Create a subscription from an internal service request.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Example Ltd","description":"The subscription name."},"freeagent_contact_id":{"type":"string","example":"123456789","description":"optional The FreeAgent contact identifier."},"status":{"type":"string","example":"Enabled","description":"optional Initial subscription status."}},"example":{"name":"Example Ltd","freeagent_contact_id":"123456789","status":"Enabled"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/subscription\" \n    -d \"name\"=\"Example Ltd\"         \\\n        -d \"freeagent_contact_id\"=\"123456789\"         \\\n        -d \"status\"=\"Enabled\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/subscription\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"name\":             \"Example Ltd\"\n        ,\n            \"freeagent_contact_id\":             \"123456789\"\n        ,\n            \"status\":             \"Enabled\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"name\" =>             \"Example Ltd\"\n        ,\n            \"freeagent_contact_id\" =>             \"123456789\"\n        ,\n            \"status\" =>             \"Enabled\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/subscription\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/subscriptions\/by-service":{"get":{"tags":["API"],"summary":"Get all subscriptions","operationId":"get-api-api-subscriptions-by-service","description":"Gets all the subscription details for the internal APIs.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/subscriptions\/by-service\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/subscriptions\/by-service\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/subscriptions\/by-service\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/services\/all":{"get":{"tags":["API"],"summary":"Get all users","operationId":"get-api-api-services-all","description":"Gets all the User details for the internal APIs.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/services\/all\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/services\/all\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/services\/all\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/domains\/{domainName}\/resolve":{"get":{"tags":["API"],"summary":"Get resolve","operationId":"get-api-api-domains-by-domainName-resolve","description":"Get resolve","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/resolve\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/resolve\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/domains\/{domainName}\/resolve\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/domains\/options":{"get":{"security":[{"BearerAuth":[]}],"tags":["API"],"summary":"Get options","operationId":"get-api-api-domains-options","description":"Get options","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/domains\/options\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/domains\/options\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/domains\/options\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/domains\/{domainName}\/links":{"get":{"security":[{"BearerAuth":[]}],"tags":["API"],"summary":"Get links","operationId":"get-api-api-domains-by-domainName-links","description":"Get links","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/links\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/links\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/domains\/{domainName}\/links\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/domains\/{domainName}\/links\/{serviceCode}\/{resourceType}\/{resourceId}":{"put":{"security":[{"BearerAuth":[]}],"tags":["API"],"summary":"Create resourceId","operationId":"put-api-api-domains-by-domainName-links-by-serviceCode-by-resourceType-by-resourceId","description":"Create resourceId","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X PUT \"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/links\/{serviceCode}\/{resourceType}\/{resourceId}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/links\/{serviceCode}\/{resourceType}\/{resourceId}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"PUT\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/domains\/{domainName}\/links\/{serviceCode}\/{resourceType}\/{resourceId}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"delete":{"security":[{"BearerAuth":[]}],"tags":["API"],"summary":"Delete resourceId","operationId":"delete-api-api-domains-by-domainName-links-by-serviceCode-by-resourceType-by-resourceId","description":"Delete resourceId","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/links\/{serviceCode}\/{resourceType}\/{resourceId}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/domains\/{domainName}\/links\/{serviceCode}\/{resourceType}\/{resourceId}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/domains\/{domainName}\/links\/{serviceCode}\/{resourceType}\/{resourceId}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/update-staff-ids":{"post":{"tags":["API"],"summary":"Update staff IDs.","operationId":"post-api-api-update-staff-ids","description":"Update FreeAgent staff IDs for users, keyed by user email address.","requestBody":{"description":"Update FreeAgent staff IDs for users, keyed by user email address.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["staff_id_data"],"properties":{"staff_id_data":{"type":"object","example":"{\"alex@example.com\":12345}","description":"Map of user email addresses to FreeAgent staff IDs."}},"example":{"staff_id_data":"{\"alex@example.com\":12345}"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/update-staff-ids\" \n    -d \"staff_id_data\"=\"{\"alex@example.com\":12345}\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/update-staff-ids\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"staff_id_data\":             {\"alex@example.com\":12345}\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"staff_id_data\" =>             \"json_decode({\"alex@example.com\":12345}, true)\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/update-staff-ids\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/commercial\/subscription-billing-exemption":{"post":{"security":[{"BearerAuth":[]}],"tags":["API"],"summary":"Update subscription billing exemption","operationId":"post-api-api-commercial-subscription-billing-exemption","description":"Update subscription billing exemption","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-billing-exemption\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-billing-exemption\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/commercial\/subscription-billing-exemption\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/update-subscription-service-status":{"post":{"tags":["API"],"summary":"Update subscription service status","operationId":"post-api-api-service-update-subscription-service-status","description":"Update the status of a service linked to a subscription.","requestBody":{"description":"Update the status of a service linked to a subscription.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","service_code","status"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier."},"service_code":{"type":"string","example":"catalogue","description":"The service code to update."},"status":{"type":"string","example":"Enabled","description":"The new subscription service status."},"initiated_by_user_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"optional User that initiated the service change."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","service_code":"catalogue","status":"Enabled","initiated_by_user_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/update-subscription-service-status\" \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"service_code\"=\"catalogue\"         \\\n        -d \"status\"=\"Enabled\"         \\\n        -d \"initiated_by_user_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/update-subscription-service-status\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"service_code\":             \"catalogue\"\n        ,\n            \"status\":             \"Enabled\"\n        ,\n            \"initiated_by_user_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"service_code\" =>             \"catalogue\"\n        ,\n            \"status\" =>             \"Enabled\"\n        ,\n            \"initiated_by_user_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/update-subscription-service-status\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/delete-subscription-service-status":{"post":{"tags":["API"],"summary":"Delete subscription service status","operationId":"post-api-api-service-delete-subscription-service-status","description":"Remove a service status link from a subscription.","requestBody":{"description":"Remove a service status link from a subscription.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","service_code"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier."},"service_code":{"type":"string","example":"catalogue","description":"The service code to remove."},"initiated_by_user_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"optional User that initiated the service change."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","service_code":"catalogue","initiated_by_user_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/delete-subscription-service-status\" \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"service_code\"=\"catalogue\"         \\\n        -d \"initiated_by_user_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/delete-subscription-service-status\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"service_code\":             \"catalogue\"\n        ,\n            \"initiated_by_user_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"service_code\" =>             \"catalogue\"\n        ,\n            \"initiated_by_user_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/delete-subscription-service-status\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/emails":{"post":{"tags":["API"],"summary":"Update emails","operationId":"post-api-api-service-emails","description":"Update emails","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/emails\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/emails\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/emails\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/notifications":{"post":{"tags":["API"],"summary":"Update notifications","operationId":"post-api-api-service-notifications","description":"Update notifications","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/notifications\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/notifications\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/notifications\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/limit-alert":{"post":{"tags":["API"],"summary":"Send service limit alert","operationId":"post-api-api-service-limit-alert","description":"Notify subscription admins when a service reaches a usage limit threshold.","requestBody":{"description":"Notify subscription admins when a service reaches a usage limit threshold.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","service_code","level","type","used","limit"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier."},"service_code":{"type":"string","example":"catalogue","description":"The service code that reached a limit."},"level":{"type":"string","example":"warning","description":"Alert severity level."},"type":{"type":"string","example":"products","description":"Limit type or metric name."},"used":{"type":"number","example":13,"description":"Amount currently used."},"limit":{"type":"number","example":15,"description":"Configured limit."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","service_code":"catalogue","level":"warning","type":"products","used":13,"limit":15}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/limit-alert\" \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"service_code\"=\"catalogue\"         \\\n        -d \"level\"=\"warning\"         \\\n        -d \"type\"=\"products\"         \\\n        -d \"used\"=\"13\"         \\\n        -d \"limit\"=\"15\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/limit-alert\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"service_code\":             \"catalogue\"\n        ,\n            \"level\":             \"warning\"\n        ,\n            \"type\":             \"products\"\n        ,\n            \"used\":             \"13\"\n        ,\n            \"limit\":             \"15\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"service_code\" =>             \"catalogue\"\n        ,\n            \"level\" =>             \"warning\"\n        ,\n            \"type\" =>             \"products\"\n        ,\n            \"used\" =>             \"13\"\n        ,\n            \"limit\" =>             \"15\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/limit-alert\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/site-status-push-alert":{"post":{"tags":["API"],"summary":"Update site status push alert","operationId":"post-api-api-service-site-status-push-alert","description":"Update site status push alert","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/site-status-push-alert\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/site-status-push-alert\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/site-status-push-alert\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/chat-message-push-alert":{"post":{"tags":["API"],"summary":"Update chat message push alert","operationId":"post-api-api-service-chat-message-push-alert","description":"Update chat message push alert","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/chat-message-push-alert\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/chat-message-push-alert\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/chat-message-push-alert\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/service\/overview-cache\/invalidate":{"post":{"tags":["API"],"summary":"Update invalidate","operationId":"post-api-api-service-overview-cache-invalidate","description":"Update invalidate","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/service\/overview-cache\/invalidate\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/service\/overview-cache\/invalidate\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/service\/overview-cache\/invalidate\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/commercial\/subscription-payment-status":{"post":{"tags":["API"],"summary":"Update subscription payment status","operationId":"post-api-api-commercial-subscription-payment-status","description":"Update subscription payment status","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-payment-status\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-payment-status\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/commercial\/subscription-payment-status\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/commercial\/subscription":{"post":{"tags":["API"],"summary":"Update subscription","operationId":"post-api-api-commercial-subscription","description":"Update subscription","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/commercial\/subscription\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/commercial\/subscription-app":{"post":{"tags":["API"],"summary":"Update subscription app","operationId":"post-api-api-commercial-subscription-app","description":"Update subscription app","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-app\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-app\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/commercial\/subscription-app\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/commercial\/subscription-capability":{"post":{"tags":["API"],"summary":"Update subscription capability","operationId":"post-api-api-commercial-subscription-capability","description":"Update subscription capability","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-capability\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-capability\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/commercial\/subscription-capability\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/commercial\/subscription-usage-limit":{"post":{"tags":["API"],"summary":"Update subscription usage limit","operationId":"post-api-api-commercial-subscription-usage-limit","description":"Update subscription usage limit","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-usage-limit\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-usage-limit\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/commercial\/subscription-usage-limit\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/api\/commercial\/subscription-line":{"post":{"tags":["API"],"summary":"Update subscription line","operationId":"post-api-api-commercial-subscription-line","description":"Update subscription line","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-line\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/api\/commercial\/subscription-line\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/api\/commercial\/subscription-line\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/token":{"post":{"tags":["Oauth"],"summary":"Issue an access token.","operationId":"post-api-oauth-token","description":"Issue an access token.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/oauth\/token\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/token\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/token\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/authorize":{"get":{"tags":["Oauth"],"summary":"Authorize a client to access the user's account.","operationId":"get-api-oauth-authorize","description":"Authorize a client to access the user's account.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/oauth\/authorize\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/authorize\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/authorize\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"post":{"tags":["Oauth"],"summary":"Approve the authorization request.","operationId":"post-api-oauth-authorize","description":"Approve the authorization request.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/oauth\/authorize\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/authorize\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/authorize\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"delete":{"tags":["Oauth"],"summary":"Deny the authorization request.","operationId":"delete-api-oauth-authorize","description":"Deny the authorization request.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/oauth\/authorize\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/authorize\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/authorize\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/device":{"get":{"tags":["Oauth"],"summary":"Show the form for entering the user code.","operationId":"get-api-oauth-device","description":"Show the form for entering the user code.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/oauth\/device\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/device\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/device\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/device\/code":{"post":{"tags":["Oauth"],"summary":"Issue a device code for the client.","operationId":"post-api-oauth-device-code","description":"Issue a device code for the client.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/oauth\/device\/code\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/device\/code\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/device\/code\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/tokens":{"get":{"security":[{"BearerAuth":[]}],"tags":["Oauth"],"summary":"Get all of the authorized tokens for the authenticated user.","operationId":"get-api-oauth-tokens","description":"Get all of the authorized tokens for the authenticated user.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/oauth\/tokens\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/tokens\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/tokens\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/tokens\/{token_id}":{"delete":{"security":[{"BearerAuth":[]}],"tags":["Oauth"],"summary":"Delete the given token.","operationId":"delete-api-oauth-tokens-by-token-id","description":"Delete the given token.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/oauth\/tokens\/{token_id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/tokens\/{token_id}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/tokens\/{token_id}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/personal-access-tokens":{"get":{"security":[{"BearerAuth":[]}],"tags":["Oauth"],"summary":"Get all of the personal access tokens for the authenticated user.","operationId":"get-api-oauth-personal-access-tokens","description":"Get all of the personal access tokens for the authenticated user.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/oauth\/personal-access-tokens\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/personal-access-tokens\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/personal-access-tokens\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"post":{"security":[{"BearerAuth":[]}],"tags":["Oauth"],"summary":"Create a new personal access token for the user.","operationId":"post-api-oauth-personal-access-tokens","description":"Create a new personal access token for the user.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/oauth\/personal-access-tokens\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/personal-access-tokens\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/personal-access-tokens\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/personal-access-tokens\/{token_id}":{"delete":{"security":[{"BearerAuth":[]}],"tags":["Oauth"],"summary":"Delete the given token.","operationId":"delete-api-oauth-personal-access-tokens-by-token-id","description":"Delete the given token.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/oauth\/personal-access-tokens\/{token_id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/personal-access-tokens\/{token_id}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/personal-access-tokens\/{token_id}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/token\/refresh":{"post":{"tags":["Oauth"],"summary":"Get a fresh transient token cookie for the authenticated user.","operationId":"post-api-oauth-token-refresh","description":"Get a fresh transient token cookie for the authenticated user.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/oauth\/token\/refresh\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/token\/refresh\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/token\/refresh\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/oauth\/scopes":{"get":{"tags":["Oauth"],"summary":"Get all of the available scopes for the application.","operationId":"get-api-oauth-scopes","description":"Get all of the available scopes for the application.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/oauth\/scopes\" \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/oauth\/scopes\");\n\nlet headers = {\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/oauth\/scopes\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/notification":{"delete":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Delete notification","operationId":"delete-api-user-notification","description":"Delete notification","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/notification\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notification\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notification\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/notification-read":{"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Mark notification as read","operationId":"post-api-user-notification-read","description":"Mark one notification as read for the authenticated user.","requestBody":{"description":"Mark one notification as read for the authenticated user.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The notification identifier."}},"example":{"id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/notification-read\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notification-read\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notification-read\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/notifications-read-target":{"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Mark notifications for a target entity as read.","operationId":"post-api-user-notifications-read-target","description":"Mark unread notifications as read when they point at the same entity or link target.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/notifications-read-target\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notifications-read-target\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notifications-read-target\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/notification-toggle":{"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Toggle notification as read\/unread","operationId":"post-api-user-notification-toggle","description":"Toggle one notification between read and unread for the authenticated user.","requestBody":{"description":"Toggle one notification between read and unread for the authenticated user.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The notification identifier."}},"example":{"id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/notification-toggle\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notification-toggle\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notification-toggle\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/notification-all-read":{"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Mark all notifications as read","operationId":"post-api-user-notification-all-read","description":"Mark every notification as read for the authenticated user.","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/notification-all-read\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notification-all-read\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notification-all-read\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/notifications":{"get":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Get latest 50 notifications","operationId":"get-api-user-notifications","description":"Get latest 50 notifications","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/notifications\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notifications\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notifications\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/profile":{"get":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Get the current user's profile","operationId":"get-api-user-profile","description":"Get the current user's profile","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/profile\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/profile\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/profile\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Update the current user's profile","operationId":"post-api-user-profile","description":"Update the authenticated user's profile details and preferred language.","requestBody":{"description":"Update the authenticated user's profile details and preferred language.","required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Alex Smith","description":"optional The user's display name."},"email":{"type":"string","example":"alex@example.com","description":"optional The user's email address."},"language":{"type":"string","example":"en-GB","description":"optional The preferred locale code."},"profile_image":{"type":"string","example":"wc3VZ~)h<B^t","description":"optional Existing media path, temporary upload reference, or inline image payload."}},"example":{"name":"Alex Smith","email":"alex@example.com","language":"en-GB","profile_image":"wc3VZ~)h<B^t"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/profile\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"name\"=\"Alex Smith\"         \\\n        -d \"email\"=\"alex@example.com\"         \\\n        -d \"language\"=\"en-GB\"         \\\n        -d \"profile_image\"=\"wc3VZ~)h<B^t\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/profile\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"name\":             \"Alex Smith\"\n        ,\n            \"email\":             \"alex@example.com\"\n        ,\n            \"language\":             \"en-GB\"\n        ,\n            \"profile_image\":             \"wc3VZ~)h&lt;B^t\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"name\" =>             \"Alex Smith\"\n        ,\n            \"email\" =>             \"alex@example.com\"\n        ,\n            \"language\" =>             \"en-GB\"\n        ,\n            \"profile_image\" =>             \"wc3VZ~)h&lt;B^t\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/profile\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/profile-image-temporary":{"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Upload temporary profile image","operationId":"post-api-user-profile-image-temporary","description":"Store an image temporarily so it can be attached to the user's profile.","requestBody":{"description":"Store an image temporarily so it can be attached to the user's profile.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","example":"MiL\"vf.9g>x:","description":"The image file to upload."}},"example":{"file":"MiL\"vf.9g>x:"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/profile-image-temporary\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"file\"=\"MiL\"vf.9g>x:\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/profile-image-temporary\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"file\":             \"MiL&quot;vf.9g&gt;x:\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"file\" =>             \"MiL&quot;vf.9g&gt;x:\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/profile-image-temporary\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/notification-preferences":{"get":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Get notification preferences","operationId":"get-api-user-notification-preferences","description":"Get notification preferences","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/notification-preferences\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notification-preferences\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notification-preferences\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Update notification preferences","operationId":"post-api-user-notification-preferences","description":"Update notification preferences","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/notification-preferences\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/notification-preferences\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/notification-preferences\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/export":{"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Export","operationId":"post-api-user-export","description":"Queue an export for the matching User records.","requestBody":{"description":"Queue an export for the matching User records.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier used to scope the request."},"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The identifier of a specific item to export when applicable."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/export\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/export\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/export\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user":{"post":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Create","operationId":"post-api-user","description":"Create a new User with the values passed.","requestBody":{"description":"Create a new User with the values passed.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier used to scope the user request."},"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The user identifier to link when updating an existing user."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"get":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Get User","operationId":"get-api-user","description":"Get one User by ID, or list all available User records when no ID is supplied.","parameters":[{"in":"query","name":"subscription_id","description":"The subscription identifier used to scope the request.","required":true,"schema":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}},{"in":"query","name":"id","description":"optional","required":false,"schema":{"type":"string","example":"l,yEhpA\/W!3#"}}],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\");\n\n    let params = {\n            \"subscription_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n            \"id\": \"l,yEhpA\/W!3#\",\n        };\n\n    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $query = [\n            \"subscription_id\" => \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n            \"id\" => \"l,yEhpA\/W!3#\",\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/table":{"get":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Table collection","operationId":"get-api-user-table","description":"Get a paginated table representation of the User collection.","parameters":[{"in":"query","name":"subscription_id","description":"The subscription identifier used to scope the request.","required":true,"schema":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}},{"in":"query","name":"page","description":"The page number to retrieve.","required":false,"schema":{"type":"number","example":1}},{"in":"query","name":"page_limit","description":"The number of items to return per page.","required":false,"schema":{"type":"number","example":100}},{"in":"query","name":"sort","description":"Sort order in the format {asc|desc},{field_code}.","required":false,"schema":{"type":"string","example":"asc,name"}},{"in":"query","name":"visible_columns","description":"Comma-separated list of column codes to show in the table.","required":false,"schema":{"type":"string","example":"id,name,status"}},{"in":"query","name":"filters","description":"Filters to apply. Each filter supports id, type, and content.","required":false,"schema":{"type":"array","example":"[{\"id\":\"status\",\"type\":\"=\",\"content\":\"Enabled\"}]"}}],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/table\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/table\");\n\n    let params = {\n            \"subscription_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n            \"page\": \"1\",\n            \"page_limit\": \"100\",\n            \"sort\": \"asc,name\",\n            \"visible_columns\": \"id,name,status\",\n            \"filters\": \"[{&quot;id&quot;:&quot;status&quot;,&quot;type&quot;:&quot;=&quot;,&quot;content&quot;:&quot;Enabled&quot;}]\",\n        };\n\n    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $query = [\n            \"subscription_id\" => \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n            \"page\" => \"1\",\n            \"page_limit\" => \"100\",\n            \"sort\" => \"asc,name\",\n            \"visible_columns\" => \"id,name,status\",\n            \"filters\" => \"[{&quot;id&quot;:&quot;status&quot;,&quot;type&quot;:&quot;=&quot;,&quot;content&quot;:&quot;Enabled&quot;}]\",\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/table?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/bulk":{"put":{"security":[{"BearerAuth":[]}],"tags":["User"],"summary":"Bulk update User","operationId":"put-api-user-bulk","description":"Update multiple User records with the submitted values. Only changed values are versioned.","requestBody":{"description":"Update multiple User records with the submitted values. Only changed values are versioned.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","ids","data"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier used to scope the request."},"ids":{"type":"array","example":"[\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"]","description":"The identifiers of the items to update."},"data":{"type":"array","example":"[{\"id\":\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"status\":\"Enabled\"}]","description":"The field values to apply to each item."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","ids":"[\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"]","data":"[{\"id\":\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"status\":\"Enabled\"}]"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X PUT \"http:\/\/api.structurell.internal\/api\/user\/bulk\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"ids\"=\"[\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"]\"         \\\n        -d \"data\"=\"[{\"id\":\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"status\":\"Enabled\"}]\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/bulk\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"ids\":             \"[&quot;xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;]\"\n        ,\n            \"data\":             \"[{&quot;id&quot;:&quot;xxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,&quot;status&quot;:&quot;Enabled&quot;}]\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"PUT\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"ids\" =>             \"json_decode([\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"], true)\"\n        ,\n            \"data\" =>             \"json_decode([{\"id\":\"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\"status\":\"Enabled\"}], true)\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/bulk\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/header-notifications":{"get":{"security":[{"BearerAuth":[]}],"tags":["User Header-notifications"],"summary":"Get header notifications","operationId":"get-api-user-header-notifications","description":"Get header notifications","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/header-notifications\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/header-notifications\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/header-notifications\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/resend-complete-registration":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Resend-complete-registration"],"summary":"Resend registration email","operationId":"post-api-user-resend-complete-registration","description":"Resends the registration email if the user is still pending.","requestBody":{"description":"Resends the registration email if the user is still pending.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The user identifier to resend the registration email for."}},"example":{"id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/resend-complete-registration\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/resend-complete-registration\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/resend-complete-registration\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/complete-registration-link":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Complete-registration-link"],"summary":"Get registration link","operationId":"post-api-user-complete-registration-link","description":"Gets the registration link if the user is still pending.","requestBody":{"description":"Gets the registration link if the user is still pending.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The user identifier to generate the registration link for."}},"example":{"id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/complete-registration-link\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/complete-registration-link\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/complete-registration-link\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n    curl_setopt($ch, CURLOPT_POSTFIELDS, $body);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/sessions":{"get":{"security":[{"BearerAuth":[]}],"tags":["User Sessions"],"summary":"Get sessions","operationId":"get-api-user-sessions","description":"Get sessions","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/sessions\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/sessions\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/sessions\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"delete":{"security":[{"BearerAuth":[]}],"tags":["User Sessions"],"summary":"Delete sessions","operationId":"delete-api-user-sessions","description":"Delete sessions","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/sessions\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/sessions\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/sessions\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/sessions\/{id}":{"delete":{"security":[{"BearerAuth":[]}],"tags":["User Sessions {id}"],"summary":"Delete id","operationId":"delete-api-user-sessions-by-id","description":"Delete id","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/sessions\/{id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/sessions\/{id}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/sessions\/{id}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/security-upgrade-prompt":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Security-upgrade-prompt"],"summary":"Update security upgrade prompt","operationId":"post-api-user-security-upgrade-prompt","description":"Update security upgrade prompt","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/security-upgrade-prompt\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/security-upgrade-prompt\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/security-upgrade-prompt\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/two-factor":{"get":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor"],"summary":"Get two factor","operationId":"get-api-user-two-factor","description":"Get two factor","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/two-factor\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"delete":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor"],"summary":"Delete two factor","operationId":"delete-api-user-two-factor","description":"Delete two factor","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/two-factor\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/two-factor\/email-code":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor Email-code"],"summary":"Update email code","operationId":"post-api-user-two-factor-email-code","description":"Update email code","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/two-factor\/email-code\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\/email-code\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\/email-code\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/two-factor\/email-code\/confirm":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor Email-code Confirm"],"summary":"Update confirm","operationId":"post-api-user-two-factor-email-code-confirm","description":"Update confirm","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/two-factor\/email-code\/confirm\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\/email-code\/confirm\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\/email-code\/confirm\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/two-factor\/email":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor Email"],"summary":"Update email","operationId":"post-api-user-two-factor-email","description":"Update email","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/two-factor\/email\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\/email\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\/email\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/two-factor\/setup":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor Setup"],"summary":"Update setup","operationId":"post-api-user-two-factor-setup","description":"Update setup","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/two-factor\/setup\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\/setup\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\/setup\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/two-factor\/confirm":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor Confirm"],"summary":"Update confirm","operationId":"post-api-user-two-factor-confirm","description":"Update confirm","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/two-factor\/confirm\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\/confirm\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\/confirm\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/two-factor\/recovery-codes":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Two-factor Recovery-codes"],"summary":"Update recovery codes","operationId":"post-api-user-two-factor-recovery-codes","description":"Update recovery codes","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/two-factor\/recovery-codes\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/two-factor\/recovery-codes\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/two-factor\/recovery-codes\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/passkeys":{"get":{"security":[{"BearerAuth":[]}],"tags":["User Passkeys"],"summary":"Get passkeys","operationId":"get-api-user-passkeys","description":"Get passkeys","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/passkeys\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/passkeys\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/passkeys\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"post":{"security":[{"BearerAuth":[]}],"tags":["User Passkeys"],"summary":"Update passkeys","operationId":"post-api-user-passkeys","description":"Update passkeys","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/passkeys\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/passkeys\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/passkeys\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/passkeys\/options":{"post":{"security":[{"BearerAuth":[]}],"tags":["User Passkeys"],"summary":"Update options","operationId":"post-api-user-passkeys-options","description":"Update options","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X POST \"http:\/\/api.structurell.internal\/api\/user\/passkeys\/options\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/passkeys\/options\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"POST\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/passkeys\/options\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/passkeys\/{id}":{"put":{"security":[{"BearerAuth":[]}],"tags":["User Passkeys {id}"],"summary":"Create id","operationId":"put-api-user-passkeys-by-id","description":"Create id","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X PUT \"http:\/\/api.structurell.internal\/api\/user\/passkeys\/{id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/passkeys\/{id}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"PUT\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/passkeys\/{id}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"delete":{"security":[{"BearerAuth":[]}],"tags":["User Passkeys {id}"],"summary":"Delete id","operationId":"delete-api-user-passkeys-by-id","description":"Delete id","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/passkeys\/{id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/passkeys\/{id}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/passkeys\/{id}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/push-device":{"put":{"security":[{"BearerAuth":[]}],"tags":["User Push-device"],"summary":"Create push device","operationId":"put-api-user-push-device","description":"Create push device","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X PUT \"http:\/\/api.structurell.internal\/api\/user\/push-device\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/push-device\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"PUT\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/push-device\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"delete":{"security":[{"BearerAuth":[]}],"tags":["User Push-device"],"summary":"Delete push device","operationId":"delete-api-user-push-device","description":"Delete push device","parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/push-device\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/push-device\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/push-device\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/table\/state":{"get":{"security":[{"BearerAuth":[]}],"tags":["User Table"],"summary":"Table bootstrap state","operationId":"get-api-user-table-state","description":"Get the saved durable user preferences used to initialize the User Table table.","parameters":[{"in":"query","name":"subscription_id","description":"The subscription identifier used to scope the request.","required":true,"schema":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/table\/state\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/table\/state\");\n\n    let params = {\n            \"subscription_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n        };\n\n    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $query = [\n            \"subscription_id\" => \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/table\/state?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/{id}":{"get":{"security":[{"BearerAuth":[]}],"tags":["User {id}"],"summary":"Get User {id}","operationId":"get-api-user-by-id","description":"Get one User {id} by ID, or list all available User {id} records when no ID is supplied.","parameters":[{"in":"query","name":"subscription_id","description":"The subscription identifier used to scope the request.","required":true,"schema":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}},{"in":"query","name":"id","description":"optional","required":false,"schema":{"type":"string","example":".az\"u6<j|,9g"}}],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X GET -G \"http:\/\/api.structurell.internal\/api\/user\/{id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"    \n"},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/{id}\");\n\n    let params = {\n            \"subscription_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n            \"id\": \".az&quot;u6&lt;j|,9g\",\n        };\n\n    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\nfetch(url, {\nmethod: \"GET\",\nheaders: headers,\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $query = [\n            \"subscription_id\" => \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n            \"id\" => \".az&quot;u6&lt;j|,9g\",\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/{id}?\" . http_build_query($data));\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"put":{"security":[{"BearerAuth":[]}],"tags":["User {id}"],"summary":"Update User {id}","operationId":"put-api-user-by-id","description":"Update an existing User {id} with the submitted field values. Only changed values are versioned.","requestBody":{"description":"Update an existing User {id} with the submitted field values. Only changed values are versioned.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier used to scope the request."},"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The identifier of the item to update."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X PUT \"http:\/\/api.structurell.internal\/api\/user\/{id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/{id}\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"PUT\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/{id}\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]},"delete":{"security":[{"BearerAuth":[]}],"tags":["User {id}"],"summary":"Delete User {id}","operationId":"delete-api-user-by-id","description":"Delete one or more User {id} records.","requestBody":{"description":"Delete one or more User {id} records.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The identifier of the item to delete."}},"example":{"id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[{"in":"query","name":"subscription_id","description":"The subscription identifier used to scope the request.","required":true,"schema":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/{id}\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/{id}\");\n\n    let params = {\n            \"subscription_id\": \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n        };\n\n    Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n    $query = [\n            \"subscription_id\" => \"xxxxxxxxxxxxxxxxxxxxxxxxxx\",\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/{id}?\" . http_build_query($data));\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/{id}\/draft":{"delete":{"security":[{"BearerAuth":[]}],"tags":["User {id}"],"summary":"Delete draft","operationId":"delete-api-user-by-id-draft","description":"Delete the draft version for a User {id}.","requestBody":{"description":"Delete the draft version for a User {id}.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier used to scope the request."},"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The identifier of the item whose draft should be deleted."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X DELETE \"http:\/\/api.structurell.internal\/api\/user\/{id}\/draft\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/{id}\/draft\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"DELETE\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/{id}\/draft\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/{id}\/enable":{"put":{"security":[{"BearerAuth":[]}],"tags":["User {id}"],"summary":"Enable User {id}","operationId":"put-api-user-by-id-enable","description":"Mark one or more User {id} records as enabled.","requestBody":{"description":"Mark one or more User {id} records as enabled.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier used to scope the request."},"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The identifier of the item to enable."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X PUT \"http:\/\/api.structurell.internal\/api\/user\/{id}\/enable\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/{id}\/enable\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"PUT\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/{id}\/enable\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}},"\/api\/user\/{id}\/disable":{"put":{"security":[{"BearerAuth":[]}],"tags":["User {id}"],"summary":"Disable User {id}","operationId":"put-api-user-by-id-disable","description":"Mark one or more User {id} records as disabled.","requestBody":{"description":"Mark one or more User {id} records as disabled.","required":true,"content":{"application\/json":{"schema":{"type":"object","required":["subscription_id","id"],"properties":{"subscription_id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The subscription identifier used to scope the request."},"id":{"type":"string","example":"xxxxxxxxxxxxxxxxxxxxxxxxxx","description":"The identifier of the item to disable."}},"example":{"subscription_id":"xxxxxxxxxxxxxxxxxxxxxxxxxx","id":"xxxxxxxxxxxxxxxxxxxxxxxxxx"}}}}},"parameters":[],"responses":[],"x-code-samples":[{"lang":"Bash","source":"curl -X PUT \"http:\/\/api.structurell.internal\/api\/user\/{id}\/disable\"     \\\n            -H \"Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\"            \\\n            \n    -d \"subscription_id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\"         \\\n        -d \"id\"=\"xxxxxxxxxxxxxxxxxxxxxxxxxx\" "},{"lang":"Javascript","source":"const url = new URL(\"http:\/\/api.structurell.internal\/api\/user\/{id}\/disable\");\n\nlet headers = {\n    \"Authorization\": \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\": \"application\/json\",\n    \"Content-Type\": \"application\/json\",\n}\n\n    let body = JSON.stringify({\n            \"subscription_id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\":             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        })\n\nfetch(url, {\nmethod: \"PUT\",\nheaders: headers,\n    body: body\n})\n.then(response => response.json())\n.then(json => console.log(json));\n"},{"lang":"PHP","source":"$headers = [\n    \"Authorization\" => \"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJod\",\n    \"Accept\" => \"application\/json\",\n    \"Content-Type\" => \"application\/json\",\n];\n\n    $body = [\n            \"subscription_id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n            \"id\" =>             \"xxxxxxxxxxxxxxxxxxxxxxxxxx\"\n        ,\n        ];\n\n\n$ch = curl_init(\"http:\/\/api.structurell.internalphp.blade.php\/api\/user\/{id}\/disable\");\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n$result = curl_exec($ch);\n$err = curl_error($ch);\ncurl_close($ch);\n\nif ($err) {\nthrow \\Exception($err);\n} else {\nreturn $response;\n}\n"}]}}},"x-tagGroups":[]}