Skip to content

crinzy #831

Description

@andavarapuvinay

Python

import requests

Replace this with your Aniverse API endpoint for creating issues

URL = "https://api.aniverse.com/v1/issues"

Replace with your API token

API_TOKEN = "your_api_token_here"

Issue data

data = {
"title": "Sample Issue from API",
"description": "Detailed description of the issue, with steps to reproduce.",
"assignee": "username_optional",
"labels": ["bug", "high-priority"]
}

Header with authentication

headers = {
"Authorization": f"Bearer {API_TOKEN}",
"Content-Type": "application/json"
}

Make the POST request to create an issue

response = requests.post(URL, json=data, headers=headers)

if response.status_code == 201:
print("Issue created successfully!")
print(response.json())
else:
print("Failed to create issue.")
print(response.status_code, response.text)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions