POST api/ResourceTypes/{resourceTypeIdentity}/Resources
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
resourceTypeIdentity | string |
Required |
Body Parameters
ResourceName | Description | Type | Additional information |
---|---|---|---|
UserAsResourceIdentities | Collection of globally unique identifier |
None. |
|
BookingTypeIdentities | Collection of globally unique identifier |
None. |
|
ResourceTypeIdentity | globally unique identifier |
None. |
|
ResourceTypeName | string |
None. |
|
Description | string |
None. |
|
CanEdit | boolean |
None. |
|
Properties | Collection of ResourceDatum |
None. |
|
ImageUri | URI |
None. |
|
ExternalApplicationIdentity | globally unique identifier |
None. |
|
ResourceOwners | Collection of NamedObject |
None. |
|
ReadPermissionGroups | Collection of NamedObject |
None. |
|
WritePermissionGroups | Collection of NamedObject |
None. |
|
Identity | globally unique identifier |
None. |
|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserAsResourceIdentities": [ "377fadc7-1e77-47a6-a42b-eaa383a6f57c", "651d8576-73f8-4b7f-9267-1def2130eadf" ], "BookingTypeIdentities": [ "64382f68-f52d-4a51-8f99-f26f396fb5e1", "83feee36-8c98-427f-82b8-35e4002f167d" ], "ResourceTypeIdentity": "2bf9c9cd-e0f2-46ac-b8ad-6e5562ac4429", "ResourceTypeName": "sample string 2", "Description": "sample string 3", "CanEdit": true, "Properties": [ { "Value": {}, "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "DisplayName": "sample string 3", "Identity": "4f86f8e2-1df9-429f-9e6c-1e1b1e9ab889", "Name": "sample string 5" }, { "Value": {}, "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "DisplayName": "sample string 3", "Identity": "4f86f8e2-1df9-429f-9e6c-1e1b1e9ab889", "Name": "sample string 5" } ], "ImageUri": "http://webapihelppage5.com", "ExternalApplicationIdentity": "31db3978-df3f-483d-878e-75a87a6da79e", "ResourceOwners": [ { "Identity": "b38dc729-7613-48ab-a5fb-21eccf490ef0", "Name": "sample string 2" }, { "Identity": "b38dc729-7613-48ab-a5fb-21eccf490ef0", "Name": "sample string 2" } ], "ReadPermissionGroups": [ { "Identity": "b38dc729-7613-48ab-a5fb-21eccf490ef0", "Name": "sample string 2" }, { "Identity": "b38dc729-7613-48ab-a5fb-21eccf490ef0", "Name": "sample string 2" } ], "WritePermissionGroups": [ { "Identity": "b38dc729-7613-48ab-a5fb-21eccf490ef0", "Name": "sample string 2" }, { "Identity": "b38dc729-7613-48ab-a5fb-21eccf490ef0", "Name": "sample string 2" } ], "Identity": "45b5fab6-6958-4979-af99-01c115b8ad8a", "Name": "sample string 7" }
application/xml, text/xml
Sample:
<Resource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">45b5fab6-6958-4979-af99-01c115b8ad8a</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name> <ReadPermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:NamedObject> <d2p1:Identity>b38dc729-7613-48ab-a5fb-21eccf490ef0</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>b38dc729-7613-48ab-a5fb-21eccf490ef0</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </ReadPermissionGroups> <WritePermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:NamedObject> <d2p1:Identity>b38dc729-7613-48ab-a5fb-21eccf490ef0</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>b38dc729-7613-48ab-a5fb-21eccf490ef0</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </WritePermissionGroups> <ResourceOwners xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:NamedObject> <d2p1:Identity>b38dc729-7613-48ab-a5fb-21eccf490ef0</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>b38dc729-7613-48ab-a5fb-21eccf490ef0</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </ResourceOwners> <BookingTypeIdentities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>64382f68-f52d-4a51-8f99-f26f396fb5e1</d2p1:guid> <d2p1:guid>83feee36-8c98-427f-82b8-35e4002f167d</d2p1:guid> </BookingTypeIdentities> <CanEdit>true</CanEdit> <Description>sample string 3</Description> <ExternalApplicationIdentity>31db3978-df3f-483d-878e-75a87a6da79e</ExternalApplicationIdentity> <ImageUri>http://webapihelppage5.com/</ImageUri> <Properties> <ResourceDatum> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">4f86f8e2-1df9-429f-9e6c-1e1b1e9ab889</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 5</Name> <DisplayName>sample string 3</DisplayName> <Value /> <ValueChoices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </ValueChoices> <ValueType>sample string 2</ValueType> </ResourceDatum> <ResourceDatum> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">4f86f8e2-1df9-429f-9e6c-1e1b1e9ab889</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 5</Name> <DisplayName>sample string 3</DisplayName> <Value /> <ValueChoices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </ValueChoices> <ValueType>sample string 2</ValueType> </ResourceDatum> </Properties> <ResourceTypeIdentity>2bf9c9cd-e0f2-46ac-b8ad-6e5562ac4429</ResourceTypeIdentity> <ResourceTypeName>sample string 2</ResourceTypeName> <UserAsResourceIdentities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>377fadc7-1e77-47a6-a42b-eaa383a6f57c</d2p1:guid> <d2p1:guid>651d8576-73f8-4b7f-9267-1def2130eadf</d2p1:guid> </UserAsResourceIdentities> </Resource>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |