IWebmasterApi.SubmitUrl(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Submit url
public:
void SubmitUrl(System::String ^ siteUrl, System::String ^ url);
[System.ServiceModel.FaultContract(typeof(Microsoft.Bing.Webmaster.Api.Interfaces.ApiFault))]
[System.ServiceModel.OperationContract]
[System.ServiceModel.Web.WebInvoke(BodyStyle=System.ServiceModel.Web.WebMessageBodyStyle.WrappedRequest, Method="POST")]
public void SubmitUrl (string siteUrl, string url);
abstract member SubmitUrl : string * string -> unit
Public Sub SubmitUrl (siteUrl As String, url As String)
Parameters
- siteUrl
- String
Site url E.g.: http://example.com
- url
- String
Url to submit E.g.: http://example.com/url1.html
- Attributes
Examples
XML request sample
POST /webmaster/api.svc/pox/SubmitUrl?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com
<SubmitUrl xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api">
<siteUrl>http://example.com</siteUrl>
<url>http://example.com/url1.html</url>
</SubmitUrl>
XML response sample
HTTP/1.1 200 OK
Content-Length: 0
JSON request sample
POST /webmaster/api.svc/json/SubmitUrl?apikey=sampleapikeyedecc1ea4ae341cc8b6 HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: ssl.bing.com
{
"siteUrl":"http://example.com",
"url":"http://example.com/url1.html"
}
JSON response sample
HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8
{
"d":null
}
Remarks
It is possible to submit only limited number of url. GetUrlSubmissionQuota(String) should be called to determine how much urls can be submitted.