PUT api/admin/v1/opportunityTypes/{opportunityTypeId}
Update an existing opportunity type
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
opportunityTypeId |
ID of the opportunity type |
integer |
Required |
Body Parameters
New opportunity type informations
OpportunityTypeEditDtoName | Description | Type | Additional information |
---|---|---|---|
Code |
The short code of the element |
string |
None |
Description |
The description of the element |
string |
None |
IsActive |
True if the element is active, false otherwise |
boolean |
None |
Id |
Unique ID |
integer |
None |
Request Formats
application/json, text/json
Sample:
{ "Code": "sample string 1", "Description": "sample string 2", "IsActive": true, "Id": 4 }
application/xml, text/xml
Sample:
<OpportunityTypeEditDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models"> <Id>4</Id> <Code>sample string 1</Code> <Description>sample string 2</Description> <IsActive>true</IsActive> </OpportunityTypeEditDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
200
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 |