Application Packaging Standard

Last updated 18-Mar-2019

Account

This type represents an organization with users where some users have administrative permissions. The account resource must refer to administrative users via a weak link.

Account schema: download

{
    "apsVersion": "2.0",

    "name": "Account",

    "id": "http://aps-standard.org/types/core/account/1.0",

    "properties": {
       "companyName": {
          "type": "string",
          "required": true
       },
       "addressPostal": {
          "type": "http://aps-standard.org/types/core/contact/1.2#Address",
          "required": true
       }
    },
    
    "relations": {
       "users": {
          "type": "http://aps-standard.org/types/core/user/1.0",
          "collection": true
       },
       "brand": {
          "type": "http://aps-standard.org/types/core/brand/1.0",
          "required": false
       }
    }
}

In a resource, the properties are filled with the following data:

Property Description
id Unique identifier of an organization
companyName Organization name
addressPostal Postal address of the organization

The relation describes a collection of links with users of the organization:

Relation Description
users Links with users of the organization, including administrators and service users