Application & Process Automation V2
SetProjectOwner
Set the owner of a project.
Request
POST Programs/{ProgramId}/Projects/{ProjectId}/Owner
Path Parameters
Name | Value | Description |
---|---|---|
ProgramId |
string |
Unique identifier for the program. |
ProjectId |
string |
Unique identifier for the project. |
Request Body
{
"OwnerEmail": string
}
{
"OwnerEmail": "exampleuser@cleanpower.com"
}
<xs:schema xmlns:xs="http://www.w4.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xs:element name="SetProjectOwnerRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="OwnerEmail" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<span class="hljs-tag"><<span class="hljs-name">SetProjectOwnerRequest</span>><br /></span><span class="hljs-tag"> <<span class="hljs-name">OwnerEmail</span>></span>exampleuser@cleanpower.com<span class="hljs-tag"></<span class="hljs-name">OwnerEmail</span>><br /></span><span class="hljs-tag"></<span class="hljs-name">SetProjectOwnerRequest</span>></span>
Request Parameters
Name | Value | Description |
---|---|---|
OwnerEmail |
string |
Email of the user to assign ownership of the project to. |
Response
Response Body
{
"Owner": {
"Name": string,
"Email": string
}
}
{
"Owner": {
"Name": "example user",
"Email": "exampleuser@cleanpower.com"
}
}
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"><br /> <xs:element name="SetProjectOwnerResponse"><br /> <xs:complexType><br /> <xs:sequence><br /> <xs:element name="Owner"><br /> <xs:complexType><br /> <xs:attribute type="xs:string" name="Email"/><br /> <xs:attribute type="xs:string" name="Name"/><br /> </xs:complexType><br /> </xs:element><br /> </xs:sequence><br /> </xs:complexType><br /> </xs:element><br /></xs:schema>
<?xml version="1.0" encoding="utf-8"?>
<SetProjectOwnerResponse>
<Owner Name="example user" Email="exampleuser@cleanpower.com" />
</SetProjectOwnerResponse>
Response Parameters
Name | Value | Description |
---|---|---|
Owner.Name |
string |
Name associated with the account of the updated project owner. |
Owner.Email |
string |
Email associated with the account of the updated project owner. |