Customer domains#

Fetching domains#

Fetching a customer domain can be done in two ways. If you know the ID of the domain, you can fetch based on this ID. Or you can search for domains.

Fetching by ID#

To fetch a domain by ID, the domain endpoint can be used with a GET request along with the ID. The response body will be JSON formatted, and contain all information on the domain.

curl -X GET -H "Argus-API-Key: my/api/key" https://api.mnemonic.no/customerdomains/v1/domain/<id>

Tip

For more detailed information on what the response model looks like, you can check out the Swagger API documentation.

Creating customer domains#

To add a single customer domain the domain endpoint must be used with the POST request, and the body submitted as JSON. The response body will be JSON formatted, and contain the added domain.

curl -X POST -H "Argus-API-Key: my/api/key" -H "Content-Type: application/json" https://api.mnemonic.no/customernetworks/v1/domain/ -d '{
  "customer": "mnemonic",
  "description": "properly described",
  "internalDomain": false
}'

Tip

For more detailed information on what the response model looks like, you can check out the Swagger API documentation.

Updating a customer domain#

To update a domain, the domain endpoint must be used with a PUT request. The response body will be the updated customer domain formatted as JSON.

curl -X PUT -H "Argus-API-Key: my/api/key" -H "Content-Type: application/json" https://api.mnemonic.no/customernetworks/v1/domain/<id> -d '{
  "description": "a description of the domain",
  "internalDomain": true
}'

Tip

For more detailed information on what the response model looks like, you can check out the Swagger API documentation.

Verifying a customer domain#

To verify a domain, the verify-endpoint must be used with a PUT request. The response body will be the updated customer domain formatted as JSON.

curl -X PUT -H "Argus-API-Key: my/api/key" https://api.mnemonic.no/customernetworks/v1/domain/<id>/verify

Tip

For more detailed information on what the response model looks like, you can check out the Swagger API documentation.

Un-verifying a customer domain#

To un-verify a domain, the unverify-endpoint must be used with a PUT request. The response body will be the updated customer domain formatted as JSON.

curl -X PUT -H "Argus-API-Key: my/api/key" https://api.mnemonic.no/customernetworks/v1/domain/<id>/unverify

Tip

For more detailed information on what the response model looks like, you can check out the Swagger API documentation.

Deleting a customer domain#

To delete a domain, the domain endpoint must be used with a DELETE request. The response body will be the updated customer domain formatted as JSON. Note that the domain will not be removed from the database, but rather marked as DELETED with a flag. The domain will be excluded from search results by default. A domain can be restored by creating it again.

curl -X DELETE -H "Argus-API-Key: my/api/key" https://api.mnemonic.no/customernetworks/v1/domain/<id>

Tip

For more detailed information on what the response model looks like, you can check out the Swagger API documentation.