GitLab API "Create an issue link"

How to implement the below API using “curl” request ?

Create an issue link

Creates a two-way relation between two issues. User must be allowed to update both issues in order to succeed.

POST /projects/:id/issues/:issue_iid/links
Attribute Type Required Description
id integer/string yes The ID or URL-encoded path of the project owned by the authenticated user
issue_iid integer yes The internal ID of a project’s issue
target_project_id integer/string yes The ID or URL-encoded path of the project of a target project
target_issue_iid integer/string yes The internal ID of a target project’s issue

Thanks,
Kiran

I used below curl command to execute the gitlab API

`

`$curl_post_param “$token_param” $url"projects/$project_id/issues/$issue_iid/links?target_project_id=$target_project_id&target_issue_iid=$target_issue_iid"

`