> 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/poly/put-allof/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://akamai.ferndocs.com/_mcp/server. # Test allOf polymorphism PUT http://{hostname}/test-suite/v2/data/polymorphic/all-of Content-Type: application/json This tests `allOf` schemas. Reference: https://akamai.ferndocs.com/demo-apis/api/data/poly/put-allof ## 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. - `allOfDynamicSample` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfDynamicSample, optional) — Description comes from `stones-allOf.yaml`. - `allOfExclude` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfExclude, optional) — Test whether an `allOf` item can be excluded. The `gummo` key should not publish. (YES) - `allOfMixIn` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfMixIn, optional) — Test a typical `allOf` scenario where you mix common audit members referenced from an external file, with other data members defined inline. - `allOfThenOneOf` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfThenOneOf, optional) - `allOfWithinOneOf` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfWithinOneOf, optional) - `schema-poly-allof-amorphic` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofAmorphic, optional) — This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `schema-poly-allof-amorphic-inline` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofAmorphicInline, optional) — This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `schema-poly-allof-array` (list of DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofArrayItems, optional) — This array's `items` references an `allOf`. It should publish four Beatles and four Stones. - `schema-poly-allof-array-inline` (list of DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofArrayInlineItems, optional) — This array's `items` references an `allOf`. It should publish four Beatles and four Stones. - `schema-poly-allof-nested` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofNested, optional) — This features `allOf` schemas that nest further nested `allOf` schemas. It should publish four Beatles and four Stones. - `schema-poly-allof-nested-inline` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofNestedInline, optional) — This features `allOf` schemas that nest further nested `allOf` schemas. It should publish four Beatles and four Stones. - `schema-poly-single` (DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolySingle, optional) — This schema specifies a single `allOf` item. ## Response ### 200 Successful response. - `allOfDynamicSample` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfDynamicSample, optional) — Description comes from `stones-allOf.yaml`. - `allOfExclude` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfExclude, optional) — Test whether an `allOf` item can be excluded. The `gummo` key should not publish. (YES) - `allOfMixIn` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfMixIn, optional) — Test a typical `allOf` scenario where you mix common audit members referenced from an external file, with other data members defined inline. - `allOfThenOneOf` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfThenOneOf, optional) - `allOfWithinOneOf` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfWithinOneOf, optional) - `schema-poly-allof-amorphic` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofAmorphic, optional) — This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `schema-poly-allof-amorphic-inline` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofAmorphicInline, optional) — This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `schema-poly-allof-array` (list of DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofArrayItems, optional) — This array's `items` references an `allOf`. It should publish four Beatles and four Stones. - `schema-poly-allof-array-inline` (list of DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofArrayInlineItems, optional) — This array's `items` references an `allOf`. It should publish four Beatles and four Stones. - `schema-poly-allof-nested` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofNested, optional) — This features `allOf` schemas that nest further nested `allOf` schemas. It should publish four Beatles and four Stones. - `schema-poly-allof-nested-inline` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofNestedInline, optional) — This features `allOf` schemas that nest further nested `allOf` schemas. It should publish four Beatles and four Stones. - `schema-poly-single` (DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolySingle, optional) — This schema specifies a single `allOf` item. ## Types ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfDynamicSample Description comes from `stones-allOf.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `keith` (boolean, optional) — Description comes from `stones-alive.yaml`. - `mick` (boolean, optional) — Description comes from `stones-alive.yaml`. - `brian` (boolean, optional) — Description comes from `stones-dead.yaml`. - `charlie` (boolean, optional) — Description comes from `stones-dead.yaml`. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfExclude - `groucho` (boolean, optional) — This schema is defined within an `allOf`. - `chico` (boolean, optional) — This schema is defined within an `allOf`. - `harpo` (boolean, optional) — This schema is defined within an `allOf`. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfMixIn This tests whether you can spec `allOf` to blend an object from different schemas. Various auditing members are `$ref` linked from a common `audit-members.yaml` schema. Read-only audit members don't appear in the request schema interface. - `createdBy` (string, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `createdDate` (datetime, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `modifiedBy` (string, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `modifiedDate` (datetime, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `chico` (boolean, optional) — This schema is defined in the second `allOf` object. - `groucho` (boolean, optional) — This schema is defined in the second `allOf` object. - `harpo` (boolean, optional) — This schema is defined in the second `allOf` object. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfThenOneOf ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaAllOfWithinOneOf ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofAmorphic This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `brian` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `charlie` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `keith` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `mick` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofAmorphicInline This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `brian` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `charlie` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `keith` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `mick` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `john` (boolean, optional) — Description is inline, in first `allOf`. - `paul` (boolean, optional) — Description is inline, in second `allOf`. - `george` (boolean, optional) — Description is inline, in first `allOf`. - `ringo` (boolean, optional) — Description is inline, in second `allOf`. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofArrayItems Description comes from `stones-dead.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `keith` (boolean, optional) — Description comes from `stones-alive.yaml`. - `mick` (boolean, optional) — Description comes from `stones-alive.yaml`. - `brian` (boolean, optional) — Description comes from `stones-dead.yaml`. - `charlie` (boolean, optional) — Description comes from `stones-dead.yaml`. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofArrayInlineItems Description is inline. - `john` (boolean, optional) — Description is inline. - `paul` (boolean, optional) — Description is inline. - `george` (boolean, optional) — Description is inline. - `ringo` (boolean, optional) — Description is inline. - `keith` (boolean, optional) — Description is inline. - `mick` (boolean, optional) — Description is inline. - `brian` (boolean, optional) — Description is inline. - `charlie` (boolean, optional) — Description is inline. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofNested Description comes from `stones-allOf.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `keith` (boolean, optional) — Description comes from `stones-alive.yaml`. - `mick` (boolean, optional) — Description comes from `stones-alive.yaml`. - `brian` (boolean, optional) — Description comes from `stones-dead.yaml`. - `charlie` (boolean, optional) — Description comes from `stones-dead.yaml`. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolyAllofNestedInline Description is inline, sibling with `allOf`. - `john` (boolean, optional) — Description is inline, first `allOf`. - `paul` (boolean, optional) — Description is inline, second `allOf`. - `george` (boolean, optional) — Description is inline, second `allOf`. - `ringo` (boolean, optional) — Description is inline, first `allOf`. - `keith` (boolean, optional) — Description is inline, second `allOf`. - `mick` (boolean, optional) — Description is inline, first `allOf`. - `brian` (boolean, optional) — Description is inline, first `allOf`. - `charlie` (boolean, optional) — Description is inline, second `allOf`. ### DataPolymorphicAllOfPutRequestBodyContentApplicationJsonSchemaSchemaPolySingle Description comes from `beatles-all.yaml`. - `george` (boolean, optional) — Description comes from `beatles-all.yaml`. - `john` (boolean, optional) — Description comes from `beatles-all.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-all.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-all.yaml`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfDynamicSample Description comes from `stones-allOf.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `keith` (boolean, optional) — Description comes from `stones-alive.yaml`. - `mick` (boolean, optional) — Description comes from `stones-alive.yaml`. - `brian` (boolean, optional) — Description comes from `stones-dead.yaml`. - `charlie` (boolean, optional) — Description comes from `stones-dead.yaml`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfExclude - `groucho` (boolean, optional) — This schema is defined within an `allOf`. - `chico` (boolean, optional) — This schema is defined within an `allOf`. - `harpo` (boolean, optional) — This schema is defined within an `allOf`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfMixIn This tests whether you can spec `allOf` to blend an object from different schemas. Various auditing members are `$ref` linked from a common `audit-members.yaml` schema. Read-only audit members don't appear in the request schema interface. - `createdBy` (string, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `createdDate` (datetime, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `modifiedBy` (string, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `modifiedDate` (datetime, optional) — __Read-only__ This schema is defined in the first `allOf` object, which is `$ref`-linked. - `chico` (boolean, optional) — This schema is defined in the second `allOf` object. - `groucho` (boolean, optional) — This schema is defined in the second `allOf` object. - `harpo` (boolean, optional) — This schema is defined in the second `allOf` object. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfThenOneOf ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaAllOfWithinOneOf ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofAmorphic This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `brian` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `charlie` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `keith` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `mick` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofAmorphicInline This mixes an object schema with an `allOf`. It might be expected to publish four Beatles and four Stones, but this is conceptually weird and possibly invalid schema syntax that we ought to avoid. - `brian` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `charlie` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `keith` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `mick` (boolean, optional) — This schema is part of an object defined outside an `allOf`. - `john` (boolean, optional) — Description is inline, in first `allOf`. - `paul` (boolean, optional) — Description is inline, in second `allOf`. - `george` (boolean, optional) — Description is inline, in first `allOf`. - `ringo` (boolean, optional) — Description is inline, in second `allOf`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofArrayItems Description comes from `stones-dead.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `keith` (boolean, optional) — Description comes from `stones-alive.yaml`. - `mick` (boolean, optional) — Description comes from `stones-alive.yaml`. - `brian` (boolean, optional) — Description comes from `stones-dead.yaml`. - `charlie` (boolean, optional) — Description comes from `stones-dead.yaml`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofArrayInlineItems Description is inline. - `john` (boolean, optional) — Description is inline. - `paul` (boolean, optional) — Description is inline. - `george` (boolean, optional) — Description is inline. - `ringo` (boolean, optional) — Description is inline. - `keith` (boolean, optional) — Description is inline. - `mick` (boolean, optional) — Description is inline. - `brian` (boolean, optional) — Description is inline. - `charlie` (boolean, optional) — Description is inline. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofNested Description comes from `stones-allOf.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-alive.yaml`. - `george` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `john` (boolean, optional) — Description comes from `beatles-dead.yaml`. - `keith` (boolean, optional) — Description comes from `stones-alive.yaml`. - `mick` (boolean, optional) — Description comes from `stones-alive.yaml`. - `brian` (boolean, optional) — Description comes from `stones-dead.yaml`. - `charlie` (boolean, optional) — Description comes from `stones-dead.yaml`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolyAllofNestedInline Description is inline, sibling with `allOf`. - `john` (boolean, optional) — Description is inline, first `allOf`. - `paul` (boolean, optional) — Description is inline, second `allOf`. - `george` (boolean, optional) — Description is inline, second `allOf`. - `ringo` (boolean, optional) — Description is inline, first `allOf`. - `keith` (boolean, optional) — Description is inline, second `allOf`. - `mick` (boolean, optional) — Description is inline, first `allOf`. - `brian` (boolean, optional) — Description is inline, first `allOf`. - `charlie` (boolean, optional) — Description is inline, second `allOf`. ### DataPolymorphicAllOfPutResponsesContentApplicationJsonSchemaSchemaPolySingle Description comes from `beatles-all.yaml`. - `george` (boolean, optional) — Description comes from `beatles-all.yaml`. - `john` (boolean, optional) — Description comes from `beatles-all.yaml`. - `paul` (boolean, optional) — Description comes from `beatles-all.yaml`. - `ringo` (boolean, optional) — Description comes from `beatles-all.yaml`. ### Original - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) - `pete` (boolean, optional) — Pete Best. (Derives from `bt-original.yaml`) - `stuart` (boolean, optional) — Stuart Sutcliffe. (Derives from `bt-original.yaml`) ### Later - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) - `ringo` (boolean, optional) — Ringo Starr. (Derives from `bt-later.yaml`) ### Original - `pete` (boolean, optional) — Pete Best. (Derives from `bt-original.yaml`) - `stuart` (boolean, optional) — Stuart Sutcliffe. (Derives from `bt-original.yaml`) - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) ### Later - `ringo` (boolean, optional) — Ringo Starr. (Derives from `bt-later.yaml`) - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) ### Original - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) - `pete` (boolean, optional) — Pete Best. (Derives from `bt-original.yaml`) - `stuart` (boolean, optional) — Stuart Sutcliffe. (Derives from `bt-original.yaml`) ### Later - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) - `ringo` (boolean, optional) — Ringo Starr. (Derives from `bt-later.yaml`) ### Original - `pete` (boolean, optional) — Pete Best. (Derives from `bt-original.yaml`) - `stuart` (boolean, optional) — Stuart Sutcliffe. (Derives from `bt-original.yaml`) - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) ### Later - `ringo` (boolean, optional) — Ringo Starr. (Derives from `bt-later.yaml`) - `george` (boolean, optional) — George Harrison. (Derives from `bt-shared.yaml`) - `john` (boolean, optional) — John Lennon. (Derives from `bt-shared.yaml`) - `paul` (boolean, optional) — Paul McCartney. (Derives from `bt-shared.yaml`) ## Examples **Request** ```json { "allOfDynamicSample": { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false }, "allOfExclude": { "groucho": true, "chico": true, "harpo": true }, "allOfMixIn": { "chico": true, "groucho": false, "harpo": true }, "allOfThenOneOf": { "george": true, "john": false, "paul": true, "ringo": true }, "allOfWithinOneOf": { "ringo": true, "george": false, "john": true, "paul": true }, "schema-poly-allof-amorphic": { "brian": true, "charlie": false, "keith": true, "mick": true, "paul": true, "ringo": true, "george": false, "john": false }, "schema-poly-allof-amorphic-inline": { "brian": false, "charlie": true, "keith": true, "mick": false, "john": true, "paul": true, "george": false, "ringo": true }, "schema-poly-allof-array": [ { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false } ], "schema-poly-allof-array-inline": [ { "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true } ], "schema-poly-allof-nested": { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false }, "schema-poly-allof-nested-inline": { "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true }, "schema-poly-single": { "george": true, "john": false, "paul": true, "ringo": true }, "chico": true, "groucho": true, "harpo": true } ``` **Response** ```json { "allOfDynamicSample": { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false }, "allOfExclude": { "groucho": true, "chico": true, "harpo": true }, "allOfMixIn": { "chico": true, "groucho": false, "harpo": true }, "allOfThenOneOf": { "george": true, "john": false, "paul": true, "ringo": true }, "allOfWithinOneOf": { "ringo": true, "george": false, "john": true, "paul": true }, "schema-poly-allof-amorphic": { "brian": true, "charlie": false, "keith": true, "mick": true, "paul": true, "ringo": true, "george": false, "john": false }, "schema-poly-allof-amorphic-inline": { "brian": false, "charlie": true, "keith": true, "mick": false, "john": true, "paul": true, "george": false, "ringo": true }, "schema-poly-allof-array": [ { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false } ], "schema-poly-allof-array-inline": [ { "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true } ], "schema-poly-allof-nested": { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false }, "schema-poly-allof-nested-inline": { "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true }, "schema-poly-single": { "george": true, "john": false, "paul": true, "ringo": true }, "chico": true, "groucho": true, "harpo": true } ``` **SDK Code** ```python import requests url = "http://{hostname}/test-suite/v2/data/polymorphic/all-of" payload = { "allOfDynamicSample": { "paul": True, "ringo": True, "george": False, "john": False, "keith": True, "mick": True, "brian": False, "charlie": False }, "allOfExclude": { "groucho": True, "chico": True, "harpo": True }, "allOfMixIn": { "chico": True, "groucho": False, "harpo": True }, "allOfThenOneOf": { "george": True, "john": False, "paul": True, "ringo": True }, "allOfWithinOneOf": { "ringo": True, "george": False, "john": True, "paul": True }, "schema-poly-allof-amorphic": { "brian": True, "charlie": False, "keith": True, "mick": True, "paul": True, "ringo": True, "george": False, "john": False }, "schema-poly-allof-amorphic-inline": { "brian": False, "charlie": True, "keith": True, "mick": False, "john": True, "paul": True, "george": False, "ringo": True }, "schema-poly-allof-array": [ { "paul": True, "ringo": True, "george": False, "john": False, "keith": True, "mick": True, "brian": False, "charlie": False } ], "schema-poly-allof-array-inline": [ { "john": True, "paul": True, "george": False, "ringo": True, "keith": True, "mick": False, "brian": False, "charlie": True } ], "schema-poly-allof-nested": { "paul": True, "ringo": True, "george": False, "john": False, "keith": True, "mick": True, "brian": False, "charlie": False }, "schema-poly-allof-nested-inline": { "john": True, "paul": True, "george": False, "ringo": True, "keith": True, "mick": False, "brian": False, "charlie": True }, "schema-poly-single": { "george": True, "john": False, "paul": True, "ringo": True }, "chico": True, "groucho": True, "harpo": True } 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/polymorphic/all-of'; const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"allOfDynamicSample":{"paul":true,"ringo":true,"george":false,"john":false,"keith":true,"mick":true,"brian":false,"charlie":false},"allOfExclude":{"groucho":true,"chico":true,"harpo":true},"allOfMixIn":{"chico":true,"groucho":false,"harpo":true},"allOfThenOneOf":{"george":true,"john":false,"paul":true,"ringo":true},"allOfWithinOneOf":{"ringo":true,"george":false,"john":true,"paul":true},"schema-poly-allof-amorphic":{"brian":true,"charlie":false,"keith":true,"mick":true,"paul":true,"ringo":true,"george":false,"john":false},"schema-poly-allof-amorphic-inline":{"brian":false,"charlie":true,"keith":true,"mick":false,"john":true,"paul":true,"george":false,"ringo":true},"schema-poly-allof-array":[{"paul":true,"ringo":true,"george":false,"john":false,"keith":true,"mick":true,"brian":false,"charlie":false}],"schema-poly-allof-array-inline":[{"john":true,"paul":true,"george":false,"ringo":true,"keith":true,"mick":false,"brian":false,"charlie":true}],"schema-poly-allof-nested":{"paul":true,"ringo":true,"george":false,"john":false,"keith":true,"mick":true,"brian":false,"charlie":false},"schema-poly-allof-nested-inline":{"john":true,"paul":true,"george":false,"ringo":true,"keith":true,"mick":false,"brian":false,"charlie":true},"schema-poly-single":{"george":true,"john":false,"paul":true,"ringo":true},"chico":true,"groucho":true,"harpo":true}' }; 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/polymorphic/all-of" payload := strings.NewReader("{\n \"allOfDynamicSample\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"allOfExclude\": {\n \"groucho\": true,\n \"chico\": true,\n \"harpo\": true\n },\n \"allOfMixIn\": {\n \"chico\": true,\n \"groucho\": false,\n \"harpo\": true\n },\n \"allOfThenOneOf\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"allOfWithinOneOf\": {\n \"ringo\": true,\n \"george\": false,\n \"john\": true,\n \"paul\": true\n },\n \"schema-poly-allof-amorphic\": {\n \"brian\": true,\n \"charlie\": false,\n \"keith\": true,\n \"mick\": true,\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false\n },\n \"schema-poly-allof-amorphic-inline\": {\n \"brian\": false,\n \"charlie\": true,\n \"keith\": true,\n \"mick\": false,\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true\n },\n \"schema-poly-allof-array\": [\n {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n }\n ],\n \"schema-poly-allof-array-inline\": [\n {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n }\n ],\n \"schema-poly-allof-nested\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"schema-poly-allof-nested-inline\": {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n },\n \"schema-poly-single\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"chico\": true,\n \"groucho\": true,\n \"harpo\": true\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/polymorphic/all-of") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Put.new(url) request["Content-Type"] = 'application/json' request.body = "{\n \"allOfDynamicSample\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"allOfExclude\": {\n \"groucho\": true,\n \"chico\": true,\n \"harpo\": true\n },\n \"allOfMixIn\": {\n \"chico\": true,\n \"groucho\": false,\n \"harpo\": true\n },\n \"allOfThenOneOf\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"allOfWithinOneOf\": {\n \"ringo\": true,\n \"george\": false,\n \"john\": true,\n \"paul\": true\n },\n \"schema-poly-allof-amorphic\": {\n \"brian\": true,\n \"charlie\": false,\n \"keith\": true,\n \"mick\": true,\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false\n },\n \"schema-poly-allof-amorphic-inline\": {\n \"brian\": false,\n \"charlie\": true,\n \"keith\": true,\n \"mick\": false,\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true\n },\n \"schema-poly-allof-array\": [\n {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n }\n ],\n \"schema-poly-allof-array-inline\": [\n {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n }\n ],\n \"schema-poly-allof-nested\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"schema-poly-allof-nested-inline\": {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n },\n \"schema-poly-single\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"chico\": true,\n \"groucho\": true,\n \"harpo\": true\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/polymorphic/all-of") .header("Content-Type", "application/json") .body("{\n \"allOfDynamicSample\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"allOfExclude\": {\n \"groucho\": true,\n \"chico\": true,\n \"harpo\": true\n },\n \"allOfMixIn\": {\n \"chico\": true,\n \"groucho\": false,\n \"harpo\": true\n },\n \"allOfThenOneOf\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"allOfWithinOneOf\": {\n \"ringo\": true,\n \"george\": false,\n \"john\": true,\n \"paul\": true\n },\n \"schema-poly-allof-amorphic\": {\n \"brian\": true,\n \"charlie\": false,\n \"keith\": true,\n \"mick\": true,\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false\n },\n \"schema-poly-allof-amorphic-inline\": {\n \"brian\": false,\n \"charlie\": true,\n \"keith\": true,\n \"mick\": false,\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true\n },\n \"schema-poly-allof-array\": [\n {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n }\n ],\n \"schema-poly-allof-array-inline\": [\n {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n }\n ],\n \"schema-poly-allof-nested\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"schema-poly-allof-nested-inline\": {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n },\n \"schema-poly-single\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"chico\": true,\n \"groucho\": true,\n \"harpo\": true\n}") .asString(); ``` ```php request('PUT', 'http://{hostname}/test-suite/v2/data/polymorphic/all-of', [ 'body' => '{ "allOfDynamicSample": { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false }, "allOfExclude": { "groucho": true, "chico": true, "harpo": true }, "allOfMixIn": { "chico": true, "groucho": false, "harpo": true }, "allOfThenOneOf": { "george": true, "john": false, "paul": true, "ringo": true }, "allOfWithinOneOf": { "ringo": true, "george": false, "john": true, "paul": true }, "schema-poly-allof-amorphic": { "brian": true, "charlie": false, "keith": true, "mick": true, "paul": true, "ringo": true, "george": false, "john": false }, "schema-poly-allof-amorphic-inline": { "brian": false, "charlie": true, "keith": true, "mick": false, "john": true, "paul": true, "george": false, "ringo": true }, "schema-poly-allof-array": [ { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false } ], "schema-poly-allof-array-inline": [ { "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true } ], "schema-poly-allof-nested": { "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false }, "schema-poly-allof-nested-inline": { "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true }, "schema-poly-single": { "george": true, "john": false, "paul": true, "ringo": true }, "chico": true, "groucho": true, "harpo": true }', 'headers' => [ 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("http://{hostname}/test-suite/v2/data/polymorphic/all-of"); var request = new RestRequest(Method.PUT); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"allOfDynamicSample\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"allOfExclude\": {\n \"groucho\": true,\n \"chico\": true,\n \"harpo\": true\n },\n \"allOfMixIn\": {\n \"chico\": true,\n \"groucho\": false,\n \"harpo\": true\n },\n \"allOfThenOneOf\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"allOfWithinOneOf\": {\n \"ringo\": true,\n \"george\": false,\n \"john\": true,\n \"paul\": true\n },\n \"schema-poly-allof-amorphic\": {\n \"brian\": true,\n \"charlie\": false,\n \"keith\": true,\n \"mick\": true,\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false\n },\n \"schema-poly-allof-amorphic-inline\": {\n \"brian\": false,\n \"charlie\": true,\n \"keith\": true,\n \"mick\": false,\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true\n },\n \"schema-poly-allof-array\": [\n {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n }\n ],\n \"schema-poly-allof-array-inline\": [\n {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n }\n ],\n \"schema-poly-allof-nested\": {\n \"paul\": true,\n \"ringo\": true,\n \"george\": false,\n \"john\": false,\n \"keith\": true,\n \"mick\": true,\n \"brian\": false,\n \"charlie\": false\n },\n \"schema-poly-allof-nested-inline\": {\n \"john\": true,\n \"paul\": true,\n \"george\": false,\n \"ringo\": true,\n \"keith\": true,\n \"mick\": false,\n \"brian\": false,\n \"charlie\": true\n },\n \"schema-poly-single\": {\n \"george\": true,\n \"john\": false,\n \"paul\": true,\n \"ringo\": true\n },\n \"chico\": true,\n \"groucho\": true,\n \"harpo\": true\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Content-Type": "application/json"] let parameters = [ "allOfDynamicSample": [ "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false ], "allOfExclude": [ "groucho": true, "chico": true, "harpo": true ], "allOfMixIn": [ "chico": true, "groucho": false, "harpo": true ], "allOfThenOneOf": [ "george": true, "john": false, "paul": true, "ringo": true ], "allOfWithinOneOf": [ "ringo": true, "george": false, "john": true, "paul": true ], "schema-poly-allof-amorphic": [ "brian": true, "charlie": false, "keith": true, "mick": true, "paul": true, "ringo": true, "george": false, "john": false ], "schema-poly-allof-amorphic-inline": [ "brian": false, "charlie": true, "keith": true, "mick": false, "john": true, "paul": true, "george": false, "ringo": true ], "schema-poly-allof-array": [ [ "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false ] ], "schema-poly-allof-array-inline": [ [ "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true ] ], "schema-poly-allof-nested": [ "paul": true, "ringo": true, "george": false, "john": false, "keith": true, "mick": true, "brian": false, "charlie": false ], "schema-poly-allof-nested-inline": [ "john": true, "paul": true, "george": false, "ringo": true, "keith": true, "mick": false, "brian": false, "charlie": true ], "schema-poly-single": [ "george": true, "john": false, "paul": true, "ringo": true ], "chico": true, "groucho": true, "harpo": true ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "http://{hostname}/test-suite/v2/data/polymorphic/all-of")! 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() ```