url = "https://your-domain.atlassian.net/wiki/rest/api/content/{id}/child/attachment"
integer
The maximum number of content objects to return per page. Note, this may be restricted by fixed system limits.
25
Minimum: 0
Format: int32
Hello @Sachin Somannavar,
Maximum is 250. The method /wiki/rest/api/content/{id}/child/attachment is deprecated, use the method /pages/{id}/attachments instead.
Please refer to the Confluence API documentation related to attachments.
if we have more than 250 in that case , what we need to do
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sachin Somannavar, use the cursor parameter, see examples how to use it here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
even if this is /wiki/rest/api/content/{id}/child/attachment depricated still I am able to you see it , is there any timeline when this will be completely non functional, because I am som issue while using the rest api v2
for example https://api.atlassian.com/ex/confluence/cloudid/rest/api/space/{space_name}/content?expand=history'
for rest api v2 if I use https://api.atlassian.com/ex/confluence/cloudid/wiki/api/v2/pages/{id}/attachments
it is giving the error , I am using all the possible changes and but not able to get correct url for this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you please let me know </wiki/api/v2/pages?limit=5&cursor=<cursor token>>; rel="next" , where I will get the cursor token , since I am facing issue with rest api v2 not able to explore this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you send the GET request with the limit parameter (for example, /pages/{id}/attachments?limit=5 to get five attachments of the page), you'll get the header in response which can be used to get the next five attachments (highlighted in green on the screenshot above).
So in your case use the method /pages/{id}/attachments?limit=250 and then the "next" attribute to get the next 250 attachments and so on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much , for your help , will explore if I get any doubts will reach out here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/pages/{id}/attachments?limit=250 by using this we will get first 250 then for next 250 , do we need to construct the url like this ? /pages/{id}/attachments?limit=250 ; rel="next" , is this correct one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.