Home Page > POST api/requests/submit/{Id}

Submits a request by request ID.

Examples

C#

string logonToken = GetLogonToken();
            Guid newRequestId = GetRequestId();
            string url = string.Format("https://iamgaoapiurl/api/requests/submit/{0}", newRequestId);
            HttpWebRequest httpRequest = (HttpWebRequest)HttpWebRequest.Create(url);
            httpRequest.ContentType = "application/json";
            ServicePointManager.ServerCertificateValidationCallback += ((sender, certificate, chain, sslPolicyErrors) => true);
            httpRequest.Method = "POST";
            httpRequest.Headers.Set("X_GovernanceAutomation_Access_Token", logonToken);
            
            //Get response on the web request from Governance Automation Online Web API.
            JObject request = null;
            HttpWebResponse response = (HttpWebResponse)httpRequest.GetResponse();
            using (Stream responseStream = response.GetResponseStream())
            {
                using (StreamReader responseReader = new StreamReader(responseStream, Encoding.UTF8))
                {
                    string reply = responseReader.ReadToEnd();
                }
            };

Request Information

URI Parameters

NameDescriptionType
Id

Gets the ID of a request that is stored as a record in Governance Automation Online databases.

globally unique identifier

Response Information

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>