OpenProject Schemas API
The schema provides detailed information about the properties of a resource.The schema is represented by a dictionary where keys are names of resource properties and values areobjects describing the corresponding property.These objects are called **field schema** and form the core of the schema representation.Each of them can contain its own `_links` and `_embedded` section.## Linked Properties| Link | Description | Type | Nullable | Supported operations ||:-------------------:| ---------------------------------------- | ------------- | -------- | -------------------- || self | This schema | Schema | | READ |## Local Properties| Property | Description | Type || :-----------------: | ---------------------------------------------------------------------------------- | ---------------- || _dependencies | A list of dependencies between one property's value and another property | SchemaDependency |The `_dependencies` property contains the list of dependencies that exist between the value selected for one of the properties of the described resource and the resource's structure. Depending on the value, additional properties might exist or properties might have other values allowed to be assigned. See [SchemaDependency](https://www.openproject.org/docs/api/endpoints/schemas/#schema-dependencies) for more information.## Field schema### Linked Properties| Property | Description | Conditions || :--------------: | -------------------------------------------------------------- | --------------------------------------------- || allowedValues | List of resources that are assignable by the current user. | Will not exist if `allowedValuesSchemas` is present. || allowedValuesSchemas | Link to schemas further describing the property. | Will not exist if `allowedValues` is present. |The `allowedValues` can either contain a list of canonical links or just a single link to a collection resource.This is an optimization to allow efficient handling of both small resource lists (that can be enumerated inline) and largeresource lists (requiring one or more separate requests).The `allowedValuesSchemas` will on rare occasions (e.g. for a [Query](https://www.openproject.org/docs/api/endpoints/queries/)) replace `allowedValues`. This is done when there is no fixed set of allowed values. Instead, the allowed values will have to follow a schema, or one of a list of schemas, in its own right.Only one of the links (`allowedValues`, `allowedValuesSchemas`) will exist for any given property.### Local Properties| Property | Description | Type | Default ||:-----------------:| ---------------------------------------------------------------------------------- | ------------ | ------- || type | The data type of the property | MetaType | || name | Human readable name of the property as it could be displayed in a UI | String | || required | If true this property is not nullable | Boolean | true || hasDefault | If true this property will have a default value if none is provided | Boolean | false || writable | If false it is not allowed to **change** the property value | Boolean | true || minLength | The value of the property must at least contain the specified amount of characters | Integer | 0 || maxLength | The value of the property must at most contain the specified amount of characters | Integer | ∞ || regularExpression | The value of the property must match the given regular expression (if not null) | String | null || formula | If present, contains a formula that is used to calculate the value of the property | String | null || location | If present, contains a reference to the location of the property in the JSON | String | null || description | If present, contains a formattable, human readable description | Formattable | null || deprecated | If present, the client should consider the existence of the property deprecated | Boolean | false || placeholder | If present, contains the text to display as a placeholder, so if no value is set | String | null |All of the above properties that do not have a default value *must* be present in the schema.For properties that have a default value, the client can assume the default value, if the property is missing.Note that regular expressions used in the API follow the rules of [Ruby Regular Expressions](https://ruby-doc.org/core-2.2.6/Regexp.html).### Location propertyThe location property gives a hint as to where to find the resource property: * when not set, it is in the resource top level attributes; * when set to `_links`, it is under the path `_links.propertyName`; * when set to `_meta`, it is under the path `_meta.propertyName`.For example, for a work package schema, the field schema of the `user` property has a locationproperty set to `_links`. This means that the `user` property will be found under the path`_links.user` of the json payload of the work package resource.## Schema DependenciesA `SchemaDependency` describes the dependencies between a value chosen for a resource's propertyand the resource's structure. By that, additional properties or changes in a property aredescribed.A `SchemaDependency` will never describe a property to disappear, only to appear. As such italways provides additional information. For a property that is depending on another property'svalue, this can result in not being listed in the resource's schema itself at all. This will bethe case if the existence of the property as a whole will be dependent. If only one of the aspects(e.g. *writable*) of the property changes with the selected value, the property itself willalready be listed in the schema, but it will lack the dependent aspect.Given that SchemaDependencies will only add information, and the content type of JSON, a client should be able to join the two objects, the schema and the dependency, into one object easily.SchemaDependencies are always embedded inside a Schema's `_dependencies` attribute. As such, they are not independently existing resources. Consequently, they do not have a `self` reference.### Linked PropertiesA SchemaDependency does not have any links.### Local Properties| Property | Description | Type || :-----------------: | ---------------------------------------------------------------------------------- | ---------------- || on | The name of the property on which the dependency exists | string || dependencies | The additions to a schema grouped by the value of the depending property | object |The following excerpt exemplifies the objects that can be found as a value of the `dependencies` property:```json{ "_type": "SchemaDependency", "on": "someProperty", "dependencies": { "1": { "loremIpsum": { "type": "User", "name": "Lorem ipsum", "required": true, "hasDefault": false, "writable": true, "location": "_links", "placeholder": "Lorem ipsum placeholder", "description": { "format": "markdown", "raw": "A description for field Lorem ipsum. This may contain [links](https://example.com).", "html": "A description for field Lorem ipsum. This may contain links." }; "_links": { "allowedValues": { "href": "/api/v3/some/path/to/users" } } } }, "2": { "loremIpsum": { "type": "User", "name": "Lorem ipsum", "required": true, "hasDefault": false, "writable": true, "location": "_links", "_links": { "allowedValues": { "href": "/api/v3/a/totally/different/path/to/other/users" } } } }, "3": { "loremIpsum": { "type": "User", "name": "Lorem ipsum", "required": true, "hasDefault": false, "writable": false, "location": "_links", } }, "4": {} }}```Given the example above: * If the depending property is `1`, `2` or `3`: * The client must set the property `loremIpsum`, because of `"required": true` for all three fieldschemas * When the depending property is `1` or `2`, the values allowed to be set for `loremIpsum` propertydiffer * When the depending property is `3`, the `loremIpsum` property will not be writable * If the depending property is `4`, the `loremIpsum` property does not existBecause of the limitation of JSON objects, all keys will be strings, even when the depending value is actually something different (e.g. Integer, Date).This is also true for resources where the resource url is used as the key.
OpenProject Schemas API is one of 62 APIs that OpenProject publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Schemas. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes 1 operation across 1 path, and defines 1 schema. It is described by OpenAPI 3.1.2, at version 3.
Requests are made against 3 base URLs: https://qa.openproject-edge.com, https://qa.openproject-stage.com, https://community.openproject.org.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
OpenProject Schemas API declares
1 security scheme
for authenticating requests.
It accepts HTTP basic authentication (BasicAuth).
By default, every request must be authenticated.
Paths & Operations 1
Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.
The schema provides detailed information about the properties of a resource. The schema is represented by a dictionary where keys are names of resource properties and values are o…
Schemas 1
The contract defines 1 schema that model the data the API accepts and returns. Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from OpenProject 12
Other APIs OpenProject publishes across the network.
This is an independent, third-party profile of OpenProject Schemas API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.