Skip to content

NP6 API Reference (8.1.0)

This documentation provides comprehensive access to the full range of functionalities offered by the NP6 platform through a standardized RESTful interface.

If you have any questions or need assistance, please contact our support team at https://support.chapsvision.com.

Languages
Servers
Production server
https://api-cm.np6.com
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Request

Path
idstring(uuid)required

The compilable's id to execute

Headers
X-Keystringrequired

A unique API key used to authenticate requests to the NP6 platform. This key must be included in every API call to validate the identity and permissions of the client. Keep your API key secure and do not expose it in public code or logs.

Bodyapplication/json

The compilable's arguments used to execute

object
curl -i -X POST \
  'https://api-cm.np6.com/scripting/compilables/{id}/execution' \
  -H 'Content-Type: application/json' \
  -H 'X-Key: string' \
  -d '{}'

Responses

An execution result

Bodyapplication/json
typestring
Discriminator
argumentsobject

A reminder of the arguments used to execute the compilable.

valueobject

Defines the result of the execution.

Response
application/json
{ "type": "success", "arguments": {}, "value": {} }

Preview the specified compilable using the specified configuration

Request

Path
idstring(uuid)required

The compilable's id to preview

Headers
X-Keystringrequired

A unique API key used to authenticate requests to the NP6 platform. This key must be included in every API call to validate the identity and permissions of the client. Keep your API key secure and do not expose it in public code or logs.

Bodyapplication/json

The preview definition

valueobject

Defines the definition of the compilable to preview

idstring(uuid)

Defines the unique id of the compilable

namestring

Defines the name of the compilable

descriptionstring

Defines the description of the compilable

statestring

Defines the state of the compilable

stampobject

Defines the stamp informations of the compilable

valueobject

Defines the underlying scriptable value describing the compilable

argumentsobject

The compilable's arguments used to execute the preview

curl -i -X POST \
  'https://api-cm.np6.com/scripting/compilables/{id}/preview' \
  -H 'Content-Type: application/json' \
  -H 'X-Key: string' \
  -d '{
    "value": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "description": "string",
      "state": "string",
      "stamp": {
        "creation": "2019-08-24T14:15:22Z",
        "modification": "2019-08-24T14:15:22Z"
      },
      "value": {
        "type": "string"
      }
    },
    "arguments": {}
  }'

Responses

An execution result

Bodyapplication/json
typestring
Discriminator
argumentsobject

A reminder of the arguments used to execute the compilable.

valueobject

Defines the result of the execution.

Response
application/json
{ "type": "success", "arguments": {}, "value": {} }
Operations
Operations
Operations