Article ID: 119100, created on Dec 11, 2013, last review on May 10, 2014

  • Applies to:
  • APS 2.x

Symptoms

When trying to POST and object from UI I get an error:

Error in application metadata: setting metadata with id 'PROPERTY_NAME' cannot be found.

Cause

JSON structure sent by UI does not correspond schema of this service.

Resolution

Make sure the structure is identical in both request and schema

  • property names are the same (it's case-sensitive)

  • aps.type of the service itself exists, no id is passed

  • no aps.type is passed for relations

Example of correct request to bind a domain:

{
   "aps":{
      "type":"http://application.com/domainmanager/domains/1.0"
   },
   "name":"testdomain1.de",
   "domainStatus":"ready",
   "tempSetting":"active",
   "domain":{
      "aps":{
         "id":"43431323-0718-4047-8e84-8b1c98a7d143"
      }
   }
}

the schema for this service:

{
  "apsVersion": "2.0",
  "name": "domains",
  "id": "http:\/\/application.com\/domainmanager\/domains\/1.0",
  "implements": [
    "http:\/\/aps-standard.org\/types\/core\/resource\/1.0"
  ],
  "properties": {
    "name": {
      "type": "string",
      "readonly": true,
      "title": "Domain Zone name"
    },
    "domainStatus": {
      "type": "string",
      "readonly": true,
      "title": "Domain Status"
    },
    "tempSetting": {
      "type": "string",
      "readonly": true,
      "title": "Temp setting Name"
    }
  },
  "relations": {
    "tenant": {
      "type": "http:\/\/application.com\/domainmanager\/tenant\/1.0",
      "required": true,
      "collection": false
    },
    "domain": {
      "type": "http:\/\/aps-standard.org\/types\/dns\/domain\/1.0",
      "required": true,
      "collection": true
    },
    "dnsrecord": {
      "type": "http:\/\/aps-standard.org\/types\/dns\/record\/1.0",
      "collection": true
    }
  }
}

70bf700e0cdb9d7211df2595ef7276ab 717db81efe94e616312b74fb03a5d474

Email subscription for changes to this article
Save as PDF