To create a new resource, use the command core/create_resource:
svc=core/create_resource¶ms={"creatorId":<long>, "name":<text>}
Name | Description |
---|---|
creatorId | ID of a user who will be assigned a creator for a new resource |
name | name of a new resource (at least 4 characters) |
You can find the format of response in the chapter Data format: Resources.
Code | Value |
---|---|
1 | invalid session |
2 | invalid service name |
3 | invalid result |
4 | invalid format or value of parameters |
6 | - creator ID doesn't exist - error creating resource (could be forbidden to create elements) |
1002 | resource with such unique property already exists |