Update Assessment
  • 31 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Update Assessment

  • Dark
    Light
  • PDF

Article summary

Update Assessment

PATCH /assessment/{externalId}

Note: Using the API it possible to update an assessment even if an assessment author has opened it in the platform. The API ignores the User Lock. The last performed save action (by API or GUI) will be the final state. The user will not receive a message if the opened assessment has been updated by the API.


NameData TypeDescription
Content-type:application/jsonfor all requests
Authorization:EAPI {token}for all requests

Body Parameters

Parameters indicated with a * are mandatory

Name
Data Type
Description
Titlestring (100)Assessment title
Codestring (64)Assessment code
Ownerstring (64)Owner’s User Name. This value comes from ExternalApi settings by default.
TaxonomiesArrayList of Taxonomies connected to collection. If empty or null: all taxonomies would be available within the collection
Taxonomy.ExternalIdStringTaxonomy ExternalId
Taxonomy.TitleStringTaxonomy Title
LoRepositoryExternalIdsArrayContains information on LO repositories connected to collection. If empty: all LO repositories are available within the collection
ObjectiveRepositories.ExternalIdStringLearning objective repository ExternalId
ObjectiveRepositories.TitleStringLearning objective repository Title

Sample Request URL

https://api.cirrusplatform.com/api/v1/integrations/assessment/codetest1

Sample Request

{
	"Title": "assessment2018_test11_new",
	"Code": "assessment2018_test11_newcode"
}

Sample Response

{
	"Success": true,
	"Errors": null
}

Response codes

CodeDescription
200Successful operation
403Not allowed to use external API
400Possible error codes:
Assessment hasn't been found by external id externalId
Can't update published assessment (External id: externalId)settings
'Title' should not be empty
'Code' should not be empty.
Update fields have not been specified
500Internal server error

Was this article helpful?