POST scores
Publishes a new score from a source score file specified by URL.
Resource URL
https://api.us-east-1.everywhere.avid.com/apis/avid.sibelius.publishing;version=2;realm=global/scores
Parameters
Parameter | Required | Description | Example values |
---|---|---|---|
scoreUrl | Required | Publicly accessible URL to the score | https://www.sibelius.com/my-great-score.sib |
scoreId | Optional | User-assignable score ID/alias | myGreatScore |
options | Optional | Publishing options | {} |
options.transpose | Optional | Enables rendering of transposed scores | false |
Example request
1 | POST /apis/avid.sibelius.publishing;version=2;realm=global/scores |
Example response
1 | 200 OK |
GET scores
Gets scores. Returns 50 scores by default. You may optionally specify offset
and limit
values to control the number of scores returned.
Resource URL
https://api.us-east-1.everywhere.avid.com/apis/avid.sibelius.publishing;version=2;realm=global/scores
Parameters
Parameter | Required | Description | Example values |
---|---|---|---|
score | Optional | Score object with searchable parameters | { "status": "pending" } |
offset | Optional | Offset search results | 20 |
limit | Optional | Limit search results, default 50, maximum 100 | 25 |
Example request
This request searches for all scores with a status of “pending”, and limits
the number of results to 1.
1 | GET /apis/avid.sibelius.publishing;version=2;realm=global/scores |
Example response
1 | 200 OK |
POST scores/count
Gets score count.
Resource URL
https://api.us-east-1.everywhere.avid.com/apis/avid.sibelius.publishing;version=2;realm=global/scores/count
Parameters
Parameter | Required | Description | Example values |
---|---|---|---|
score | Optional | Score object allowing you to get the count of scores that match certain criteria | |
offset | Optional | Offset where score counting should begin | 20 |
limit | Optional | Limit the number of scores to count | 25 |
Example request
This request searches for all scores with a status of “pending”, and limits
the number of results to 1.
1 | GET /apis/avid.sibelius.publishing;version=2;realm=global/scores |
Example response
1 | 200 OK |
GET scores/:id
Gets a score by ID. The ID may be either the one specified when publishing the
score using the scoreId
parameter or the unique UUID that is automatically
generated for the published score.
Resource URL
https://api.us-east-1.everywhere.avid.com/apis/avid.sibelius.publishing;version=2;realm=global/scores/:id
Parameters
None
Example request
This request retrieves a score with the ID of myGreatScore
.
1 | GET /apis/avid.sibelius.publishing;version=2;realm=global/scores/myGreatScore |
Example response
1 | 200 OK |
DELETE scores/:id
Deletes a score by ID.
Resource URL
https://api.us-east-1.everywhere.avid.com/apis/avid.sibelius.publishing;version=2;realm=global/scores/:scoreId
Parameters
Parameter | Required | Description | Example values |
---|---|---|---|
purge | Optional | Controls whether rendered assets for this score are purged | true, false |
Example request
This request deletes a score and purges all renderings.
1 | DELETE /apis/avid.sibelius.publishing;version=2;realm=global/scores/myGreatScore |
Example response
1 | 200 OK |
POST scores/:scoreId/view
Creates a new view of a score.
Resource URL
https://api.us-east-1.everywhere.avid.com/apis/avid.sibelius.publishing;version=2;realm=global/scores/:scoreId/view
Parameters
Parameter | Required | Description | Example values |
---|---|---|---|
settings.printable | Optional | Controls whether user is able to print from viewer | true, false |
settings.pages | Optional | Controls the number of pages displayed to the user | 1,4,6-10 |
settings.licenseString | Optional | Allows you to embed a string into the view of the score, intended for licensing information | Licensed to Joe Bloggs |
settings.lang | Optional | Controls the language of the viewer, specified as a string in the format defined in Tags for Identifying Languages (BCP47) | |
expiresIn | Optional | Allows you to specify the time (in seconds) that the view should remain active for. Minimum is 0 and maximum is 86400 (24 hours) | 7200 |
Example request
1 | GET /apis/avid.sibelius.publishing;version=2;realm=global/scores/5adf7fc7-68b0-478f-ab08-3ecec0ab297c/view |
Example response
1 | 200 OK |
GET core/health
Checks service health. Also useful for checking connectivity with the Cloud
Publishing API.
Resource URL
https://api.us-east-1.everywhere.avid.com/apis/avid.sibelius.publishing;version=2;realm=global/core/health
Note: This isn’t strictly part of the public API so should not be relied
upon.
Parameters
None
Example request
1 | GET /apis/avid.sibelius.publishing;version=2;realm=global/core/health |
Example response
1 | 200 OK |