Skip to main content
Skip table of contents

Module management

Create a new module

The following steps need to be taken when creating a new module:

  1. POST the new module to the modules endpoint. You will get an HTTP 202 (Accepted) response, with a link to the status endpoint.

  2. Poll the status endpoint regularly, but not more often than once every second.

  3. Once the status endpoint returns a successful response, you will be redirected to the GET method of the modules endpoint. From this, you will get the NOBB module number.

  4. Upon module creating, the module will be automatically approved, and the status will be sent to “Godkjent”. There is no need to send the module for approval.

Update an existing module

The following steps need to be taken when updating an existing module:

  1. PATCH the changes to the module to the modules endpoint. NOBB Module number is the identifier for the module. You will get an HTTP 202 (Accepted) response, with a link to the status endpoint.

  2. Poll the status endpoint regularly, but not more often than once every second.

  3. Once the status endpoint returns a successful response, you will be redirected to the GET method of the modules endpoint.

  4. Send the module for approval, using the modules/sendforapproval endpoint, using the NOBB module number.

  5. The approval process can be manual and may take a substantial amount of time. To check if the module approval process has finished, use the GET endpoint modules/{moduleno} and monitor the status.status property.
    The approval has finished once the status.status equals "Godkjent" or "Underkjent".

  6. When status.status == "Godkjent" the module was approved, and when status.status == "Underkjent" the module was rejected.

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.