I have successfully used a REST call to create a list item in my root site and now need to use a second one to populate a list item in a sub site with the same data.
Here are my dictionary settings
Site Creation Call:
header
content-type - string - application/json;odata=verbose
accept - string - application/json;odata=verbose
metadata
type - string - SP.Data.[variable: TargetList]ListItem
JSONRequest
__metadata - dictionary - [variable: metadata]
site creation parameters:
parameters
parameters - dictionary - [variable: JSONRequest]
HTTP Call Settings
[variable: TargetURL]/_api/web/lists/getbytitle('[variable TargetList]')/items
Call Type: POST
This renders a link in the format:
http://server/rootsite/_api/web/lists/getbytitle('listname')/items
this works fine for the root site but fails with a bad request error when I add the sub site in like this:
http://server/rootsite/web/_api/web/lists/getbytitle('listname')/items
Is there a different format I should be using for the connections to sub sites or is it that I'm trying to undertake 2 REST calls with the same workflow?
/_api/web/lists/GetByTitle('listName')/ListItemEntityTypeFullName
.