Create or update a schema file
Creates or updates an API schema file.
**Note:**
- If the provided file path exists, the file is updated with the new contents.
- If the provided file path does not exist, then a new schema file is created.
- If the file path contains a `/` (forward slash) character, then a folder is created. For example, if the file path is the `dir/schema.json` value, then a `dir` folder is created with the `schema.json` file inside.
- You can only update the `root` tag for protobuf specifications.
Authentication
x-api-keystring
API Key authentication via header
OR
Authorizationstring
A valid [SCIM API key](https://learning.postman.com/docs/administration/scim-provisioning/scim-provisioning-overview/#generating-scim-api-key) for calls to SCIM endpoints.
OR
AuthorizationBasic
Basic authentication of the form Basic <base64(username:password)>.
Path parameters
apiId
The API's ID.
schemaId
The API schema's ID.
file-path
The path to the schema file.
Headers
Accept
The application/vnd.api.v10+json request header required to use the endpoint.
Allowed values:
Request
This endpoint expects an object.
name
The schema file's name.
root
Information about the schema's root file.
content
The schema file's stringified contents.
Response
Successful Response
createdBy
The user ID of the user that created the file.
createdAt
The date and time at which the file was created.
root
Information about the schema's root file.
name
The schema file's name.
path
The file system path to the schema file.
updatedBy
The user ID of the user that last updated the file.
id
The schema file's ID.
updatedAt
The date and time at which the file was last updated.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error