Create or update user-defined properties for a project
post/projects/{projectId}/userProperties
Creates or updates one or more user-defined properties in the specified project.
1{2 "version": 2,3 "accept": "application/json",4 "count": 22,5 "start": 0,6 "limit": 20,7 "name": "userProperties",8 "items": [9 {10 "name": "keyA",11 "value": "valueB",12 "type": "string"13 },14 {15 "name": "keyB",16 "value": "valueA",17 "type": "string"18 },19 {20 "name": "priority",21 "value": "high",22 "type": "string"23 },24 {25 "name": "priority2",26 "value": "high",27 "type": "string"28 }29 ],30 "links": [31 {32 "method": "GET",33 "rel": "collection",34 "href": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties",35 "uri": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties",36 "type": "application/vnd.sas.collection",37 "itemType": "application/json"38 },39 {40 "method": "GET",41 "rel": "next",42 "href": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties?start=20&limit=20&filter=eq%28projectId%2C+%27aaf8ff18-8c32-4772-8e47-40876cafbff7%27%29",43 "uri": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties?start=20&limit=20&filter=eq%28projectId%2C+%27aaf8ff18-8c32-4772-8e47-40876cafbff7%27%29",44 "type": "application/vnd.sas.collection",45 "itemType": "application/json"46 },47 {48 "method": "GET",49 "rel": "self",50 "href": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties?start=0&limit=20&filter=eq%28projectId%2C+%27aaf8ff18-8c32-4772-8e47-40876cafbff7%27%29",51 "uri": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties?start=0&limit=20&filter=eq%28projectId%2C+%27aaf8ff18-8c32-4772-8e47-40876cafbff7%27%29",52 "type": "application/vnd.sas.collection",53 "itemType": "application/json"54 },55 {56 "method": "POST",57 "rel": "create",58 "href": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties",59 "uri": "/modelRepository/projects/aaf8ff18-8c32-4772-8e47-40876cafbff7/userProperties",60 "type": "application/json"61 }62 ]63}
A collection of user-defined properties.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | false | The name of the collection. |
start | integer<int64> | false | The zero-based index of the first item in the collection. |
limit | integer | false | The number of items that were requested for the collection. |
count | integer<int64> | false | If populated indicates the number of items in the collection. |
accept | string | false | A space-delimited list of media types from which an |
links | array [Link] | false | The links that apply to the collection. |
version | integer | false | The version number of the collection representation. This representation is version 2. |
items | array [User Property] | false | The array of user-defined property representations. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 201 | Created | The user-defined properties were created or updated witin the specified project. | Headers | Schema |
| 400 | Bad Request | The request was invalid. | Schema | |
| 404 | Not Found | No project exists at the requested path. | Schema |