{"_id":"595cbda59d4fd400519acf5b","project":"55faeacad0e22017005b8265","version":{"_id":"55faeacad0e22017005b8268","project":"55faeacad0e22017005b8265","__v":36,"createdAt":"2015-09-17T16:31:06.800Z","releaseDate":"2015-09-17T16:31:06.800Z","categories":["55faeacbd0e22017005b8269","55faf550764f50210095078e","55faf5b5626c341700fd9e96","55faf8a7825d5f19001fa386","560052f91503430d007cc88f","560054f73aa0520d00da0b1a","56005aaf6932a00d00ba7c62","56005c273aa0520d00da0b3f","5601ae7681a9670d006d164d","5601ae926811d00d00ceb487","5601aeb064866b1900f4768d","5601aee850ee460d0002224c","5601afa02499c119000faf19","5601afd381a9670d006d1652","561d4c78281aec0d00eb27b6","561d588d8ca8b90d00210219","563a5f934cc3621900ac278c","5665c5763889610d0008a29e","566710a36819320d000c2e93","56ddf6df8a5ae10e008e3926","56e1c96b2506700e00de6e83","56e1ccc4e416450e00b9e48c","56e1ccdfe63f910e00e59870","56e1cd10bc46be0e002af26a","56e1cd21e416450e00b9e48e","56e3139a51857d0e008e77be","573b4f62ef164e2900a2b881","57c9d1335fd8ca0e006308ed","57e2bd9d1e7b7220000d7fa5","57f2b992ac30911900c7c2b6","58adb5c275df0f1b001ed59b","58c81b5c6dc7140f003c3c46","595412446ed4d9001b3e7b37","59e76ce41938310028037295","5a009de510890d001c2aabfe","5a96f89c89442e002041144b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"v1","version_clean":"1.0.0","version":"1"},"category":{"_id":"57e2bd9d1e7b7220000d7fa5","version":"55faeacad0e22017005b8268","__v":0,"project":"55faeacad0e22017005b8265","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-09-21T17:04:29.273Z","from_sync":false,"order":16,"slug":"answerfactory-web-application","title":"AnswerFactory Application"},"user":"56267741db1eda0d001c3dbb","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-07-05T10:21:25.866Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"post","examples":{"codes":[{"language":"json","code":"https://vector.geobigdata.io/answer-factory-project-service/api/project\n\nBody:\n{\"id\":null,\"owner\":\"testuser\",\"name\":\"TEST\",\"accountId\":\"...\",\"aois\":[{\"type\":\"Polygon\",\"coordinates\":[[[-77.045145,38.856419],[-77.04051,38.857355],[-77.038622,38.850403],[-77.042999,38.849401],[-77.045145,38.856419]]]}],\"recipeConfigs\":[{\"recipeId\":\"query-aircraft\",\"recipeName\":\"Query Aircraft\",\"parameters\":[],\"configurationDate\":\"2017-05-09T16:07:09.919Z\"}],\"originalGeometries\":[{\"type\":\"Feature\",\"properties\":{\"name\":\"AOI001\"},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-77.045145035,38.856419107],[-77.040510178,38.857354835],[-77.038621902,38.850403422],[-77.042999268,38.849400758],[-77.045145035,38.856419107]]]}}],\"namedBuffers\":[{\"name\":\"AOI001\",\"buffer\":{\"type\":\"Polygon\",\"coordinates\":[[[-77.045145,38.856419],[-77.04051,38.857355],[-77.038622,38.850403],[-77.042999,38.849401],[-77.045145,38.856419]]]}}],\"createDate\":\"2017-05-09T16:07:09.919Z\",\"updateDate\":\"2017-05-09T16:07:09.919Z\",\"notes\":\"\",\"description\":\"\",\"tags\":[],\"visibility\":[],\"continuouslyOrdered\":false,\"acquisitionIds\":\"\",\"dateRange\":{\"startDate\":null,\"endDate\":null,\"count\":null},\"enabled\":true,\"attributes\":null}"},{"code":"Request:\nPOST /answer-factory-project-service/api/project\n\nHeaders:\n  Authorization: Bearer {token}\n  Content-Type: application/json\n\nBody:\n  {\n   ... project definition: see AnswerFactory Project Reference Overview, linked in the docs section below example and results ...\n  }\n\nNotes:\n  project ID must not be specified\n\n\nResponse (success):\n202 Accepted","language":"text"}]},"results":{"codes":[{"name":"","code":"{\"id\":\"2a9219aa-e3ba-4a0b-8a86-19fd4c1c8e4a\",\"owner\":\"testuser\",\"name\":\"TEST\",\"accountId\":\"...\",\"aois\":[{\"type\":\"Polygon\",\"coordinates\":[[[-77.045145,38.856419],[-77.04051,38.857355],[-77.038622,38.850403],[-77.042999,38.849401],[-77.045145,38.856419]]]}],\"recipeConfigs\":[{\"recipeId\":\"query-aircraft\",\"recipeName\":\"Query Aircraft\",\"parameters\":[],\"configurationDate\":1494346029919}],\"originalGeometries\":[{\"type\":\"Feature\",\"properties\":{\"name\":\"AOI001\"},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-77.045145035,38.856419107],[-77.040510178,38.857354835],[-77.038621902,38.850403422],[-77.042999268,38.849400758],[-77.045145035,38.856419107]]]}}],\"namedBuffers\":[{\"name\":\"AOI001\",\"buffer\":{\"type\":\"Polygon\",\"coordinates\":[[[-77.045145,38.856419],[-77.04051,38.857355],[-77.038622,38.850403],[-77.042999,38.849401],[-77.045145,38.856419]]]}}],\"createDate\":1494346029919,\"updateDate\":1494346029919,\"notes\":\"\",\"description\":\"\",\"tags\":[],\"visibility\":[],\"continuouslyOrdered\":false,\"acquisitionIds\":\"\",\"dateRange\":{\"startDate\":null,\"endDate\":null,\"count\":null},\"enabled\":true,\"attributes\":null}","language":"json","status":202}]},"settings":"56e2c51cc8b0a40e000aa56b","auth":"required","params":[],"url":"/answer-factory-project-service/api/project"},"isReference":false,"order":11,"body":"Link reference in Example: [AnswerFactory Project Reference Overview](doc:answerfactory-project-reference-overview)\n\n###Specifying the Recipe###\nTo run the latest version of a recipe, refer to the \"base\" recipe id; that is, the recipe id with no version attached. An example base recipe id, referring to the latest version of the recipe: `\"recipeId\": \"example-recipe\"`. With the version attached: `\"recipeId\": \"example-recipe:1.0.0\"`.\n\nEach time the recipe is updated, the base recipe id is also updated to refer to the newest version of the recipe. In addition, the recipe id is also updated with the latest version number. Previous versions of the recipe will still be available. If a user requires any specific version of the recipe, or if an externally configured service simply wants to avoid potentially breaking updates to a recipe, use the recipe id with the specific version number appended. For example: `\"recipeId\": \"example-recipe:2.0.0\"`.\n\nNote: The latest version of a recipe can also be called with its \"versioned\" recipe id. For example, if the recipe is on version 3.1.2: `\"recipeId\": \"example-recipe\"` and `\"recipeId\": \"example-recipe:3.1.2\"` will both refer to the same version, the latest version, of the recipe. However, to use any past version of a recipe, the recipe must be referred to specifically with the versioned recipe id. For example: `\"recipeId\": \"example-recipe:3.1.1\"`.","excerpt":"","slug":"create-answerfactory-project","type":"endpoint","title":"Create AnswerFactory Project"}

postCreate AnswerFactory Project


Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

Link reference in Example: [AnswerFactory Project Reference Overview](doc:answerfactory-project-reference-overview) ###Specifying the Recipe### To run the latest version of a recipe, refer to the "base" recipe id; that is, the recipe id with no version attached. An example base recipe id, referring to the latest version of the recipe: `"recipeId": "example-recipe"`. With the version attached: `"recipeId": "example-recipe:1.0.0"`. Each time the recipe is updated, the base recipe id is also updated to refer to the newest version of the recipe. In addition, the recipe id is also updated with the latest version number. Previous versions of the recipe will still be available. If a user requires any specific version of the recipe, or if an externally configured service simply wants to avoid potentially breaking updates to a recipe, use the recipe id with the specific version number appended. For example: `"recipeId": "example-recipe:2.0.0"`. Note: The latest version of a recipe can also be called with its "versioned" recipe id. For example, if the recipe is on version 3.1.2: `"recipeId": "example-recipe"` and `"recipeId": "example-recipe:3.1.2"` will both refer to the same version, the latest version, of the recipe. However, to use any past version of a recipe, the recipe must be referred to specifically with the versioned recipe id. For example: `"recipeId": "example-recipe:3.1.1"`.

User Information

Try It Out


post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}