curl ************************* .. tabs:: .. tab:: curl .. code-block:: bash curl --location --request POST 'https://xxx.coding.net/open-api/CreateGitTag?Action=CreateGitTag' \ --header 'Authorization: token aaaaaaaaaaaaaaaaaaaaaaaaaa' \ --header 'Content-Type: application/json' \ --data-raw '{ "DepotId": "12240327", "Message": "this is a tag", "StartPoint": "master", "TagName": "v1.2.4" }' .. tab:: requests .. literalinclude:: /../../reference/curl/python.py :language: python .. tab:: ansible `Example `_ .. code-block:: yaml - name: 打tag ansible.builtin.uri: url: "https://xxx.coding.net/open-api/CreateGitTag?Action=CreateGitTag" method: POST body_format: json body: DepotId: "12240327" Message: "Release {{ version }}" StartPoint: "master" TagName: "v{{ version }}" return_content: true headers: Content-Type: application/json Authorization: "token {{ lookup('env', 'CODING_TOKEN') }}"