JSON Schema for one content type's fields, used by CM to render a schema-driven editor.
GET
/content-types/{type}/schema
const url = 'https://wp.si.nutrisslim.com/wp-json/nf/v1/content-types/example/schema';const options = {method: 'GET', headers: {'X-NF-Key': '<X-NF-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://wp.si.nutrisslim.com/wp-json/nf/v1/content-types/example/schema \ --header 'X-NF-Key: <X-NF-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”type
required
string
Responses
Section titled “Responses”OK
Media typeapplication/json
object
content_type
required
string
json_schema
required
object
key
additional properties
any
Examplegenerated
{ "content_type": "example", "json_schema": {}}Missing or invalid X-NF-Key.
Media typeapplication/json
object
code
required
string
message
required
string
Examplegenerated
{ "code": "example", "message": "example"}Not found.
Media typeapplication/json
object
code
required
string
message
required
string
Examplegenerated
{ "code": "example", "message": "example"}