> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://akamai.ferndocs.com/demo-apis/api/data/schemas/put-schema/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server. # Basic schema tests PUT http://{hostname}/test-suite/v2/data/schema Content-Type: application/json This tests basic schemas. Reference: https://akamai.ferndocs.com/demo-apis/api/data/schemas/put-schema ## Request ### Query parameters - `accountSwitchKey` (string, optional) — For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys). ### Body (application/json) This endpoint expects an object. - `badly formatted key` (boolean, optional) — Should trigger the `schema-name-malformed` test for a bad key name. - `enumValue` (enum, optional) — Unclear what this tests: `Value1`. - Allowed values: `Value1` - `false` (string, optional) — A boolean name that needs quotes. Should trigger a `schema-name-boolean` warning. - `lang-desc-link-invalid` (string, optional) — Here we have a [malformed doc slug prefix](docs:malformed-slug) and some (completely inverted link syntax)[ref:inverted-syntax]. - `lang-desc-numbered-slug` (string, optional) — This description provides a link with a `-1` slug [DOC](https://techdocs.akamai.com/project/segment#slug-numbered-1) and other [doc numbered slug](https://techdocs.akamai.com/internal-ux-writing/docs/slug-numbered-1). - `openapi-html-comment` (boolean, optional) — \ - `openapi-schema-ref-allof` (boolean, optional) - `openapi-schema-ref-conflict` (boolean, optional, default: false) — This schema is $ref linked. - `openapi-schema-ref-conflict-allof` (boolean, optional, default: false) - `openapi-schema-ref-overload` (DataSchemaPutRequestBodyContentApplicationJsonSchemaOpenapiSchemaRefOverload, optional) — Test different ways to arrange descriptions along with $ref links. - `random-yaml` (enum, optional) — This schema placed in an arbitrary YAML wrapper is $ref-linked with 'randomly-arranged.yaml#/yuccaPudooType' from another schema. - Allowed values: `GROUCHO`, `HARPO`, `CHICO` - `ref-overload` (string, optional) — __Read-only__ Test to confirm that because this description is present, lack of a `description` in the target `$ref` schema is _not_ flagged as an error. Also check if additional schema logic is defined outside the `$ref`, you should get an error. - `schema-desc-links-self` (string, optional) — [This schema-level link is self-referential](https://techdocs.akamai.com/internal-ux-writing/reference/get-schema-desc-links-self). - `schema-desc-malformed-para` (string, optional) — TBD description has punctuation and is a full sentence. - `schema-desc-missing` (string, optional) - `schema-example-redundant` (string, optional) — This schema should not embed an `example` that's redundant with separate sample data. - `schema-get-put-mismatch` (string, optional) — TBD GET rsp & PUT req should link same schema. - `schema-invalid-against-sample` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSchemaInvalidAgainstSample, optional) — Simple membership test to check if the CLI validates sample data against the schema. - `schema-name-case-sensitive` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSchemaNameCaseSensitive, optional) — Complain about all these schema names varying in case. - `schema-name-malformed` (string, optional) — Complain about this schema name not being camelCase. - `schema-name-misspelled` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSchemaNameMisspelled, optional) — There are typos in nested camelCase member names. There is `Content-Type`. Adn There is and Content-Type. and ContentType: - `schema-name-parroted` (string, optional) — Complain about the `schema-name-parroted` name appearing again in the description. - `schema-operation-links-self` (string, optional) — [This schema-level link is self-referential](https://techdocs.akamai.com/internal-ux-writing/reference/put-op-desc-links-self). - `schema-orphaned` (string, optional) — TBD schema file is an unreferenced orphan. - `schema-poly-anonymous` (string, optional) — TBD oneOf/anyOf: each scenario needs a label. - `schema-redundant` (string, optional) — TBD redundant schema, normalized for description. - `schema-redundant-membership` (string, optional) — TBD schema is redundant, same set of members. - `schema-type-missing` (any, optional) — This schema lacks a `type`. - `svc-tally-named-obj-keys` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeys, optional) — Test variance among same-named object schemas' set of defined members. - `svc-tally-obj-keys` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyObjKeys, optional) — Complain that this set of keys is defined in more than one schema file. - `svc-tally-schema-desc` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDesc, optional) — Test variance among schema descriptions. - `svc-tally-schema-enum-values` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValues, optional) — Test variance among schemas' enum values. Also check for when an enum is both defined and undefined for the same data member. The test needs to account for irrelevant variance in enum sort order. - `svc-tally-schema-type` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaType, optional) — Test variance among schema types. ## Response ### 200 Successful response. - `badly formatted key` (boolean, optional) — Should trigger the `schema-name-malformed` test for a bad key name. - `enumValue` (enum, optional) — Unclear what this tests: `Value1`. - Allowed values: `Value1` - `false` (string, optional) — A boolean name that needs quotes. Should trigger a `schema-name-boolean` warning. - `lang-desc-link-invalid` (string, optional) — Here we have a [malformed doc slug prefix](docs:malformed-slug) and some (completely inverted link syntax)[ref:inverted-syntax]. - `lang-desc-numbered-slug` (string, optional) — This description provides a link with a `-1` slug [DOC](https://techdocs.akamai.com/project/segment#slug-numbered-1) and other [doc numbered slug](https://techdocs.akamai.com/internal-ux-writing/docs/slug-numbered-1). - `openapi-html-comment` (boolean, optional) — \ - `openapi-schema-ref-allof` (boolean, optional) - `openapi-schema-ref-conflict` (boolean, optional, default: false) — This schema is $ref linked. - `openapi-schema-ref-conflict-allof` (boolean, optional, default: false) - `openapi-schema-ref-overload` (DataSchemaPutResponsesContentApplicationJsonSchemaOpenapiSchemaRefOverload, optional) — Test different ways to arrange descriptions along with $ref links. - `random-yaml` (enum, optional) — This schema placed in an arbitrary YAML wrapper is $ref-linked with 'randomly-arranged.yaml#/yuccaPudooType' from another schema. - Allowed values: `GROUCHO`, `HARPO`, `CHICO` - `ref-overload` (string, optional) — __Read-only__ Test to confirm that because this description is present, lack of a `description` in the target `$ref` schema is _not_ flagged as an error. Also check if additional schema logic is defined outside the `$ref`, you should get an error. - `schema-desc-links-self` (string, optional) — [This schema-level link is self-referential](https://techdocs.akamai.com/internal-ux-writing/reference/get-schema-desc-links-self). - `schema-desc-malformed-para` (string, optional) — TBD description has punctuation and is a full sentence. - `schema-desc-missing` (string, optional) - `schema-example-redundant` (string, optional) — This schema should not embed an `example` that's redundant with separate sample data. - `schema-get-put-mismatch` (string, optional) — TBD GET rsp & PUT req should link same schema. - `schema-invalid-against-sample` (DataSchemaPutResponsesContentApplicationJsonSchemaSchemaInvalidAgainstSample, optional) — Simple membership test to check if the CLI validates sample data against the schema. - `schema-name-case-sensitive` (DataSchemaPutResponsesContentApplicationJsonSchemaSchemaNameCaseSensitive, optional) — Complain about all these schema names varying in case. - `schema-name-malformed` (string, optional) — Complain about this schema name not being camelCase. - `schema-name-misspelled` (DataSchemaPutResponsesContentApplicationJsonSchemaSchemaNameMisspelled, optional) — There are typos in nested camelCase member names. There is `Content-Type`. Adn There is and Content-Type. and ContentType: - `schema-name-parroted` (string, optional) — Complain about the `schema-name-parroted` name appearing again in the description. - `schema-operation-links-self` (string, optional) — [This schema-level link is self-referential](https://techdocs.akamai.com/internal-ux-writing/reference/put-op-desc-links-self). - `schema-orphaned` (string, optional) — TBD schema file is an unreferenced orphan. - `schema-poly-anonymous` (string, optional) — TBD oneOf/anyOf: each scenario needs a label. - `schema-redundant` (string, optional) — TBD redundant schema, normalized for description. - `schema-redundant-membership` (string, optional) — TBD schema is redundant, same set of members. - `schema-type-missing` (any, optional) — This schema lacks a `type`. - `svc-tally-named-obj-keys` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeys, optional) — Test variance among same-named object schemas' set of defined members. - `svc-tally-obj-keys` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyObjKeys, optional) — Complain that this set of keys is defined in more than one schema file. - `svc-tally-schema-desc` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDesc, optional) — Test variance among schema descriptions. - `svc-tally-schema-enum-values` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValues, optional) — Test variance among schemas' enum values. Also check for when an enum is both defined and undefined for the same data member. The test needs to account for irrelevant variance in enum sort order. - `svc-tally-schema-type` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaType, optional) — Test variance among schema types. ## Types ### DataSchemaPutRequestBodyContentApplicationJsonSchemaOpenapiSchemaRefOverload Test different ways to arrange descriptions along with $ref links. - `refOrderedCorrectly` (boolean, optional) — Placing this description before the $ref is correct, so this does not trigger an error. - `refOrderedIncorrectly` (boolean, optional) — Placing this description after the $ref is incorrect, so this triggers an error. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSchemaInvalidAgainstSample Simple membership test to check if the CLI validates sample data against the schema. - `bar` (boolean, required) — All work and no play makes Jack a dull boy. - `foo` (boolean, required) — All work and no play makes Jack a dull boy. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSchemaNameCaseSensitive Complain about all these schema names varying in case. - `BADSCHEMANAME` (boolean, optional) - `BadSchemaName` (boolean, optional) - `badSchemaName` (boolean, optional) - `badschemaname` (boolean, optional) - `sourceIP` (string, optional) ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSchemaNameMisspelled There are typos in nested camelCase member names. There is `Content-Type`. Adn There is and Content-Type. and ContentType: - `certficateName` (string, optional) — All work and no play makes Jack a dull boy. - `operationid` (string, optional) — All work and no play makes Jack a dull boy. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeys Test variance among same-named object schemas' set of defined members. - `batchOne` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOne, optional) - `batchTwo` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwo, optional) ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyObjKeys Complain that this set of keys is defined in more than one schema file. - `chico` (string, optional) — Chico description. - `groucho` (string, optional) — Groucho description. - `harpo` (string, optional) — Harpo description. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDesc Test variance among schema descriptions. - `batchOne` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDescBatchOne, optional) - `batchThree` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDescBatchThree, optional) - `batchTwo` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDescBatchTwo, optional) ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValues Test variance among schemas' enum values. Also check for when an enum is both defined and undefined for the same data member. The test needs to account for irrelevant variance in enum sort order. - `batchFour` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchFour, optional) - `batchOne` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchOne, optional) - `batchThree` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchThree, optional) - `batchTwo` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchTwo, optional) ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaType Test variance among schema types. - `batchOne` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaTypeBatchOne, optional) - `batchTwo` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaTypeBatchTwo, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaOpenapiSchemaRefOverload Test different ways to arrange descriptions along with $ref links. - `refOrderedCorrectly` (boolean, optional) — Placing this description before the $ref is correct, so this does not trigger an error. - `refOrderedIncorrectly` (boolean, optional) — Placing this description after the $ref is incorrect, so this triggers an error. ### DataSchemaPutResponsesContentApplicationJsonSchemaSchemaInvalidAgainstSample Simple membership test to check if the CLI validates sample data against the schema. - `bar` (boolean, required) — All work and no play makes Jack a dull boy. - `foo` (boolean, required) — All work and no play makes Jack a dull boy. ### DataSchemaPutResponsesContentApplicationJsonSchemaSchemaNameCaseSensitive Complain about all these schema names varying in case. - `BADSCHEMANAME` (boolean, optional) - `BadSchemaName` (boolean, optional) - `badSchemaName` (boolean, optional) - `badschemaname` (boolean, optional) - `sourceIP` (string, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaSchemaNameMisspelled There are typos in nested camelCase member names. There is `Content-Type`. Adn There is and Content-Type. and ContentType: - `certficateName` (string, optional) — All work and no play makes Jack a dull boy. - `operationid` (string, optional) — All work and no play makes Jack a dull boy. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeys Test variance among same-named object schemas' set of defined members. - `batchOne` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOne, optional) - `batchTwo` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwo, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyObjKeys Complain that this set of keys is defined in more than one schema file. - `chico` (string, optional) — Chico description. - `groucho` (string, optional) — Groucho description. - `harpo` (string, optional) — Harpo description. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDesc Test variance among schema descriptions. - `batchOne` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDescBatchOne, optional) - `batchThree` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDescBatchThree, optional) - `batchTwo` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDescBatchTwo, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValues Test variance among schemas' enum values. Also check for when an enum is both defined and undefined for the same data member. The test needs to account for irrelevant variance in enum sort order. - `batchFour` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchFour, optional) - `batchOne` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchOne, optional) - `batchThree` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchThree, optional) - `batchTwo` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchTwo, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaType Test variance among schema types. - `batchOne` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaTypeBatchOne, optional) - `batchTwo` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaTypeBatchTwo, optional) ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOne - `beatles` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOneBeatles, optional) — Defines all members. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwo - `beatles` (DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwoBeatles, optional) — Defines members still alive. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDescBatchOne - `varyingDescription` (string, optional) — All work and no play makes Jeremy a dull boy. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDescBatchThree - `varyingDescription` (string, optional) ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaDescBatchTwo - `varyingDescription` (string, optional) — All twerk and no play makes Jack a dull boy. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchFour - `varyingEnumValues` (string, optional) — This schema's set of enum values varies from another with the same name. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchOne - `varyingEnumValues` (enum, optional) — This schema's set of enum values varies from another with the same name. - Allowed values: `GROUCHO`, `HARPO`, `CHICO`, `ZEPPO`, `GUMMO` ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchThree - `varyingEnumValues` (enum, optional) — This schema's set of enum values varies from another with the same name. - Allowed values: `GROUCHO`, `CHICO`, `HARPO` ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchTwo - `varyingEnumValues` (enum, optional) — This schema's set of enum values varies from another with the same name. - Allowed values: `CHICO`, `GROUCHO`, `GUMMO`, `HARPO`, `ZEPPO` ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaTypeBatchOne - `varyingType` (string, optional) — This schema's type varies from another with the same name. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallySchemaTypeBatchTwo - `varyingType` (list of string, optional) — This schema's type varies from another with the same name. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOne - `beatles` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOneBeatles, optional) — Defines all members. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwo - `beatles` (DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwoBeatles, optional) — Defines members still alive. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDescBatchOne - `varyingDescription` (string, optional) — All work and no play makes Jeremy a dull boy. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDescBatchThree - `varyingDescription` (string, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaDescBatchTwo - `varyingDescription` (string, optional) — All twerk and no play makes Jack a dull boy. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchFour - `varyingEnumValues` (string, optional) — This schema's set of enum values varies from another with the same name. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchOne - `varyingEnumValues` (enum, optional) — This schema's set of enum values varies from another with the same name. - Allowed values: `GROUCHO`, `HARPO`, `CHICO`, `ZEPPO`, `GUMMO` ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchThree - `varyingEnumValues` (enum, optional) — This schema's set of enum values varies from another with the same name. - Allowed values: `GROUCHO`, `CHICO`, `HARPO` ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaEnumValuesBatchTwo - `varyingEnumValues` (enum, optional) — This schema's set of enum values varies from another with the same name. - Allowed values: `CHICO`, `GROUCHO`, `GUMMO`, `HARPO`, `ZEPPO` ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaTypeBatchOne - `varyingType` (string, optional) — This schema's type varies from another with the same name. ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallySchemaTypeBatchTwo - `varyingType` (list of string, optional) — This schema's type varies from another with the same name. ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOneBeatles Defines all members. - `george` (string, optional) - `john` (string, optional) - `paul` (string, optional) - `ringo` (string, optional) ### DataSchemaPutRequestBodyContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwoBeatles Defines members still alive. - `paul` (string, optional) - `ringo` (string, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchOneBeatles Defines all members. - `george` (string, optional) - `john` (string, optional) - `paul` (string, optional) - `ringo` (string, optional) ### DataSchemaPutResponsesContentApplicationJsonSchemaSvcTallyNamedObjKeysBatchTwoBeatles Defines members still alive. - `paul` (string, optional) - `ringo` (string, optional) ## Examples **Request** ```json { "schema-desc-links-self": "All work and no play makes Jack a dull boy.", "schema-desc-malformed-para": "All work and no play makes Jack a dull boy.", "schema-desc-missing": "All work and no play makes Jack a dull boy.", "schema-get-put-mismatch": "All work and no play makes Jack a dull boy.", "schema-invalid-against-sample": { "bar": true, "foo": true }, "schema-name-malformed": "All work and no play makes Jack a dull boy.", "schema-name-misspelled": { "certficateName": "All work and no play makes Jack a dull boy.", "operationid": "All work and no play makes Jack a dull boy." }, "schema-orphaned": "All work and no play makes Jack a dull boy.", "schema-poly-anonymous": "All work and no play makes Jack a dull boy.", "schema-redundant": "All work and no play makes Jack a dull boy.", "schema-redundant-membership": "All work and no play makes Jack a dull boy.", "schema-type-missing": null } ``` **Response** ```json { "schema-desc-links-self": "All work and no play makes Jack a dull boy.", "schema-desc-malformed-para": "All work and no play makes Jack a dull boy.", "schema-desc-missing": "All work and no play makes Jack a dull boy.", "schema-get-put-mismatch": "All work and no play makes Jack a dull boy.", "schema-invalid-against-sample": { "bar": true, "foo": true }, "schema-name-malformed": "All work and no play makes Jack a dull boy.", "schema-name-misspelled": { "certficateName": "All work and no play makes Jack a dull boy.", "operationid": "All work and no play makes Jack a dull boy." }, "schema-orphaned": "All work and no play makes Jack a dull boy.", "schema-poly-anonymous": "All work and no play makes Jack a dull boy.", "schema-redundant": "All work and no play makes Jack a dull boy.", "schema-redundant-membership": "All work and no play makes Jack a dull boy.", "schema-type-missing": null } ``` **SDK Code** ```python import requests url = "http://{hostname}/test-suite/v2/data/schema" payload = { "schema-desc-links-self": "All work and no play makes Jack a dull boy.", "schema-desc-malformed-para": "All work and no play makes Jack a dull boy.", "schema-desc-missing": "All work and no play makes Jack a dull boy.", "schema-get-put-mismatch": "All work and no play makes Jack a dull boy.", "schema-invalid-against-sample": { "bar": True, "foo": True }, "schema-name-malformed": "All work and no play makes Jack a dull boy.", "schema-name-misspelled": { "certficateName": "All work and no play makes Jack a dull boy.", "operationid": "All work and no play makes Jack a dull boy." }, "schema-orphaned": "All work and no play makes Jack a dull boy.", "schema-poly-anonymous": "All work and no play makes Jack a dull boy.", "schema-redundant": "All work and no play makes Jack a dull boy.", "schema-redundant-membership": "All work and no play makes Jack a dull boy.", "schema-type-missing": None } headers = {"Content-Type": "application/json"} response = requests.put(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'http://{hostname}/test-suite/v2/data/schema'; const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"schema-desc-links-self":"All work and no play makes Jack a dull boy.","schema-desc-malformed-para":"All work and no play makes Jack a dull boy.","schema-desc-missing":"All work and no play makes Jack a dull boy.","schema-get-put-mismatch":"All work and no play makes Jack a dull boy.","schema-invalid-against-sample":{"bar":true,"foo":true},"schema-name-malformed":"All work and no play makes Jack a dull boy.","schema-name-misspelled":{"certficateName":"All work and no play makes Jack a dull boy.","operationid":"All work and no play makes Jack a dull boy."},"schema-orphaned":"All work and no play makes Jack a dull boy.","schema-poly-anonymous":"All work and no play makes Jack a dull boy.","schema-redundant":"All work and no play makes Jack a dull boy.","schema-redundant-membership":"All work and no play makes Jack a dull boy.","schema-type-missing":null}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "http://{hostname}/test-suite/v2/data/schema" payload := strings.NewReader("{\n \"schema-desc-links-self\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-malformed-para\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-missing\": \"All work and no play makes Jack a dull boy.\",\n \"schema-get-put-mismatch\": \"All work and no play makes Jack a dull boy.\",\n \"schema-invalid-against-sample\": {\n \"bar\": true,\n \"foo\": true\n },\n \"schema-name-malformed\": \"All work and no play makes Jack a dull boy.\",\n \"schema-name-misspelled\": {\n \"certficateName\": \"All work and no play makes Jack a dull boy.\",\n \"operationid\": \"All work and no play makes Jack a dull boy.\"\n },\n \"schema-orphaned\": \"All work and no play makes Jack a dull boy.\",\n \"schema-poly-anonymous\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant-membership\": \"All work and no play makes Jack a dull boy.\",\n \"schema-type-missing\": null\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("http://{hostname}/test-suite/v2/data/schema") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Put.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"schema-desc-links-self\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-malformed-para\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-missing\": \"All work and no play makes Jack a dull boy.\",\n \"schema-get-put-mismatch\": \"All work and no play makes Jack a dull boy.\",\n \"schema-invalid-against-sample\": {\n \"bar\": true,\n \"foo\": true\n },\n \"schema-name-malformed\": \"All work and no play makes Jack a dull boy.\",\n \"schema-name-misspelled\": {\n \"certficateName\": \"All work and no play makes Jack a dull boy.\",\n \"operationid\": \"All work and no play makes Jack a dull boy.\"\n },\n \"schema-orphaned\": \"All work and no play makes Jack a dull boy.\",\n \"schema-poly-anonymous\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant-membership\": \"All work and no play makes Jack a dull boy.\",\n \"schema-type-missing\": null\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.put("http://{hostname}/test-suite/v2/data/schema") .header("Content-Type", "application/json") .body("{\n \"schema-desc-links-self\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-malformed-para\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-missing\": \"All work and no play makes Jack a dull boy.\",\n \"schema-get-put-mismatch\": \"All work and no play makes Jack a dull boy.\",\n \"schema-invalid-against-sample\": {\n \"bar\": true,\n \"foo\": true\n },\n \"schema-name-malformed\": \"All work and no play makes Jack a dull boy.\",\n \"schema-name-misspelled\": {\n \"certficateName\": \"All work and no play makes Jack a dull boy.\",\n \"operationid\": \"All work and no play makes Jack a dull boy.\"\n },\n \"schema-orphaned\": \"All work and no play makes Jack a dull boy.\",\n \"schema-poly-anonymous\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant-membership\": \"All work and no play makes Jack a dull boy.\",\n \"schema-type-missing\": null\n}") .asString(); ``` ```php request('PUT', 'http://{hostname}/test-suite/v2/data/schema', [ 'body' => '{ "schema-desc-links-self": "All work and no play makes Jack a dull boy.", "schema-desc-malformed-para": "All work and no play makes Jack a dull boy.", "schema-desc-missing": "All work and no play makes Jack a dull boy.", "schema-get-put-mismatch": "All work and no play makes Jack a dull boy.", "schema-invalid-against-sample": { "bar": true, "foo": true }, "schema-name-malformed": "All work and no play makes Jack a dull boy.", "schema-name-misspelled": { "certficateName": "All work and no play makes Jack a dull boy.", "operationid": "All work and no play makes Jack a dull boy." }, "schema-orphaned": "All work and no play makes Jack a dull boy.", "schema-poly-anonymous": "All work and no play makes Jack a dull boy.", "schema-redundant": "All work and no play makes Jack a dull boy.", "schema-redundant-membership": "All work and no play makes Jack a dull boy.", "schema-type-missing": null }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("http://{hostname}/test-suite/v2/data/schema"); var request = new RestRequest(Method.PUT); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"schema-desc-links-self\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-malformed-para\": \"All work and no play makes Jack a dull boy.\",\n \"schema-desc-missing\": \"All work and no play makes Jack a dull boy.\",\n \"schema-get-put-mismatch\": \"All work and no play makes Jack a dull boy.\",\n \"schema-invalid-against-sample\": {\n \"bar\": true,\n \"foo\": true\n },\n \"schema-name-malformed\": \"All work and no play makes Jack a dull boy.\",\n \"schema-name-misspelled\": {\n \"certficateName\": \"All work and no play makes Jack a dull boy.\",\n \"operationid\": \"All work and no play makes Jack a dull boy.\"\n },\n \"schema-orphaned\": \"All work and no play makes Jack a dull boy.\",\n \"schema-poly-anonymous\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant\": \"All work and no play makes Jack a dull boy.\",\n \"schema-redundant-membership\": \"All work and no play makes Jack a dull boy.\",\n \"schema-type-missing\": null\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Content-Type": "application/json"] let parameters = [ "schema-desc-links-self": "All work and no play makes Jack a dull boy.", "schema-desc-malformed-para": "All work and no play makes Jack a dull boy.", "schema-desc-missing": "All work and no play makes Jack a dull boy.", "schema-get-put-mismatch": "All work and no play makes Jack a dull boy.", "schema-invalid-against-sample": [ "bar": true, "foo": true ], "schema-name-malformed": "All work and no play makes Jack a dull boy.", "schema-name-misspelled": [ "certficateName": "All work and no play makes Jack a dull boy.", "operationid": "All work and no play makes Jack a dull boy." ], "schema-orphaned": "All work and no play makes Jack a dull boy.", "schema-poly-anonymous": "All work and no play makes Jack a dull boy.", "schema-redundant": "All work and no play makes Jack a dull boy.", "schema-redundant-membership": "All work and no play makes Jack a dull boy.", "schema-type-missing": ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "http://{hostname}/test-suite/v2/data/schema")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PUT" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```