XF 2.2 How to pass the content_id parameter in an API request?

Dkf

Active member
I'm trying to create an API for plugin. I'm using the XF API to upload images.
How do I pass content_id?
This parameter should contain special id... 😵‍💫

1724623932871.webp
 
Last edited:
After uploading via the API, the attachment has a value in the "temp_hash" field. This disrupts normal operation — the attachment doesn't appear in some places. When I remove the value from the temp_hash field, everything starts working.

Where does this parameter come from and how can it be removed? Why does it appear when uploading via the API?
 
No one knows? :(I tried the following :
context[content_id] = 777
context["content_id"] = 777
context[] = content_id:777
context[] = content_id=777
context = content_id:777
context = content_id = 777
 
Back
Top Bottom